Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pivotal ID # 186152624: Search Folder with zip extension when Fire submission #752

Merged
merged 6 commits into from
Oct 4, 2023

Conversation

Juan-EBI
Copy link
Contributor

Copy link
Contributor

@jhoanmanuelms jhoanmanuelms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please consider my comments

@@ -1,146 +1,147 @@
| Class | Test No | Test name | Description |
|---------------------------------|---------|-----------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think something went wrong with this file, why do we have so many changes? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because my description column take longer than other so column have to be moved for everyrow

@@ -67,3 +69,8 @@ fun String.scape(toScape: String, scapeLiteral: String = "\\"): String = replace
* Replaces multiple whitespaces with a single space.
*/
fun String.trim(): String = replace("\\s+".toRegex(), " ")

/**
* Compute the given string so it always ends in the provided suffix, no action is taking if string already.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest:

... provided suffix. No action will be taken if the string already finishes with the expected suffix.


private fun expectedPath(path: String, type: String): String {
return when (sub.storageMode) {
StorageMode.FIRE -> if (type == FileFields.DIRECTORY_TYPE.value) path.ensureSuffix(".zip") else path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should leave a TODO here to remove this code once all the submissions have been migrated to FIRE since this looks like a data issue more than a code bug. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this will remanins IMO as we will always save file in pagetab as directory but in DB it will be always directory.zip unless we stop supporting this feature but not related with Fire migration.

@Juan-EBI Juan-EBI merged commit 46e4ff8 into master Oct 4, 2023
@Juan-EBI Juan-EBI deleted the feature/pivotal-186152624 branch October 4, 2023 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants