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

Large file bugfixes fix #769

Merged
merged 7 commits into from
Mar 11, 2024
Merged

Large file bugfixes fix #769

merged 7 commits into from
Mar 11, 2024

Conversation

ItIsJordan
Copy link
Collaborator

@ItIsJordan ItIsJordan commented Feb 28, 2024

Adds a new endpoint for specifically selecting individual data tables to avoid duplicate selecting of data, and allow specific table data selecting, where previously all table data was returned.

Fixes a number of bugs introduced in pull request #733:

  • LaTeX encoding would not render before the full table is loaded.
  • Duplication of value display headers for tables appears incorrectly
  • Fixes triggering of multiple requests on the large file loading button where previous table requests are repeated.
  • Fixes double loading of the YAML file
  • Fixes JSON linking for individual tables broken by the large file flag

Closes #756.

Fixes an issue as a part of the large file loading bugs in #756 where the filesize threshold loading button would execute multiple queries. This occurred by multiple events being passed to the button. Now clears the buton events before.
Updates tests in response to previous commit.
Updates the table renderer JS to properly use new route to select only data table.
Refactors the route to get data tables at /data/ to separate the data table (yaml file) and the headers query code. Implements a second route to select only the table data.
Fixes a bug where the table_options_region element ("Showing X of X values" and "Show All") on the records page would sometimes have the data of another table if loaded later.
Now triggers rendering of LaTeX in record table descriptions as this was bugged and only occurred when the full table is loaded. Mentioned in issue #756
@coveralls
Copy link

coveralls commented Feb 28, 2024

Coverage Status

coverage: 83.321% (+0.05%) from 83.268%
when pulling 9fb788d on large-file-bugfixes-fix
into bfa7bf4 on main.

Copy link
Member

@GraemeWatt GraemeWatt left a comment

Choose a reason for hiding this comment

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

Great work! I've checked that all the bugs listed in #756 are now fixed. I'll merge now.

@GraemeWatt GraemeWatt merged commit 89f0ff5 into main Mar 11, 2024
9 checks passed
@GraemeWatt GraemeWatt deleted the large-file-bugfixes-fix branch March 11, 2024 14:53
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.

records: fix issues loading large files
3 participants