Skip to content

118 file level perms performance#8026

Merged
kcondon merged 6 commits intodevelopfrom
118-file-level-perms-performance
Jul 29, 2021
Merged

118 file level perms performance#8026
kcondon merged 6 commits intodevelopfrom
118-file-level-perms-performance

Conversation

@sekmiller
Copy link
Copy Markdown
Contributor

What this PR does / why we need it: Improves performance of the Manage File Permissions page. It is timing out for a dataset with many files.

Which issue(s) this PR closes:

Closes #
IQSS/dataverse.harvard.edu#118

Special notes for your reviewer:
Most gains are achieved by adding a method for the onchange event of the Show Deleted Files button. Prior to this the init maps was being called three times on page load. Also stopped checking for "deleted" if the file was not restricted.

Suggestions on how to test this:
Try a dataset with a lot of restricted files and see that the page loads faster without losing any functionality.

Does this PR introduce a user interface change? If mockups are available, please link/include them here: No

Is there a release notes update needed for this change?: No

Additional documentation:None

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 26, 2021

Coverage Status

Coverage decreased (-0.002%) to 19.126% when pulling 945643c on 118-file-level-perms-performance into 1c3dbe8 on develop.


private boolean backingShowDeleted = true;

public String showDeletedCheckboxChange() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@sekmiller Only small comment, does this need to return "" or can it just be void?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

you're right. thanks. I made the change.

@sekmiller sekmiller removed their assignment Jul 26, 2021
@kcondon kcondon self-assigned this Jul 28, 2021
@kcondon
Copy link
Copy Markdown
Contributor

kcondon commented Jul 29, 2021

Tested on reported dataset: old: 3m45s new: 1m17s

@kcondon kcondon merged commit 69cfaf1 into develop Jul 29, 2021
@kcondon kcondon deleted the 118-file-level-perms-performance branch July 29, 2021 16:16
@djbrooke djbrooke added this to the 5.6 milestone Jul 29, 2021
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.

5 participants