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

Avoid possible negative offset in LibraryFolder #19090

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

martenson
Copy link
Member

likely the culprit, closes #18043

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added this to the 24.2 milestone Oct 31, 2024
@jdavcs
Copy link
Member

jdavcs commented Oct 31, 2024

Looks fine, but should we also fix other similar cases on the client? I see these:

components/FilesDialog/FilesDialog.vue
components/SelectionDialog/HistoryDatasetPicker.vue (2)
components/Grid/GridList.vue

@martenson martenson merged commit 6c4a300 into galaxyproject:dev Nov 1, 2024
31 checks passed
@martenson
Copy link
Member Author

@jdavcs I agree they should be checked for possible problems. But I wouldn't just blanket change them and this one did cause problems for sure.

@bgruening bgruening deleted the lib-offset branch November 1, 2024 07:39
@jdavcs
Copy link
Member

jdavcs commented Nov 1, 2024

@jdavcs I agree they should be checked for possible problems. But I wouldn't just blanket change them and this one did cause problems for sure.

Checking makes sense, but it's just a basic pagination calculation, and your fix is a perfectly reasonable safeguard against a negative offset which, I think, should be applied uniformly to any pagination calculation. (I can take care of it if you like.)

@martenson
Copy link
Member Author

@jdavcs please feel free to

@ahmedhamidawan ahmedhamidawan changed the title avoid possible negative offset Avoid possible negative offset in LibraryFolder Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Negative offset and limit emitted somewhere in the library interface
2 participants