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 # 187484499: Make Files Private On Resubmission #846

Conversation

jhoanmanuelms
Copy link
Contributor

https://www.pivotaltracker.com/story/show/187484499

  • Update the un-publish fire operation to return the un-published file
  • Make files private when a submission becomes private

- Update the un-publish fire operation to return the un-published file
- Make files private when a submission becomes private
Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

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

Looking good please check comments

Copy link
Contributor

@Juan-EBI Juan-EBI 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 comments before merge

@@ -63,6 +64,7 @@ class SubmissionRequestCleanIndexer(
newFiles: FilesRecords,
current: ExtSubmission,
): Triple<Int, Int, Int> {
val reusedIdx = AtomicInteger(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

if you noticed we return conflict and deprecated values so latter we know what is the amount of files to delete so we can acurrectly calculate the progress of procress. With reused files we are not so when we are actually unreleased we do not know how many files are pending.

Not saying this need to be included in this ticket which was already a huge effort but I think having precise estimation of pending activities is something we do not want to lose. Create a ticket to address that after this?

Copy link
Contributor Author

@jhoanmanuelms jhoanmanuelms Jul 3, 2024

Choose a reason for hiding this comment

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

nice catch, I added the changes 👍

@jhoanmanuelms jhoanmanuelms merged commit a4981e8 into master Jul 3, 2024
1 check passed
@jhoanmanuelms jhoanmanuelms deleted the bugfix/pivotal-#187484499-make-files-private-on-suppress-2 branch July 3, 2024 14:54
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