-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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 | | |||
|---------------------------------|---------|-----------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------| |
There was a problem hiding this comment.
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? 🤔
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
…services into feature/pivotal-186152624
https://www.pivotaltracker.com/story/show/186152624