feat(webportal): Add export to Web Portal function#7994
Draft
grantfitzsimmons wants to merge 10 commits intomainfrom
Draft
feat(webportal): Add export to Web Portal function#7994grantfitzsimmons wants to merge 10 commits intomainfrom
grantfitzsimmons wants to merge 10 commits intomainfrom
Conversation
also adds support for attachments and removes the `web_asset_store.xml` component of the asset server URL
adds some small comments here as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7606
This PR adds support for exporting query results as a Web Portal package (ZIP) for import into the Specify Web Portal. It introduces backend endpoints and logic for generating the export, updates frontend components to allow users to trigger and download the export, and adds appropriate permission checks and notifications. It even includes tests and validation improvements for tree-related queries.
At this time, exports using this tool require no changes on the Web Portal side of things.
Web Portal Export Feature:
exportwebportal/), including a newquery_to_web_portal_zipfunction and integration with the export workflow.Testing and Validation:
Example
Specify Query
Portal
Attachments
Map
Checklist
self-explanatory (or properly documented)
Testing instructions
Querybuilder → Query → Export To Web Portal).PortalFiles/PortalData.csvPortalFiles/flds.jsonPortalFiles/PortalInstanceSetting.jsonPortalFiles/SolrFldSchema.xmlPortalFiles/flds.jsonand verify:spidandimgrows are presentTitleis derived fromattachment.titlewhen availableDEVELOPERS: To really make sure this works, we need to import this into the Web Portal. To really make sure it is an adequate replacement for the Specify 6 exporter, it is a good idea to test the same export query in both versions. All KU databases have a mapping setup in them, which can be compared easily.
attachment.ispublic) are visible in the portallongitude1,latitude1,longitude2, orlatitude2are present, but keep If second set of coordinates fields are present, they are required for Geo Coords webportal-installer#64 in mind), and make sure they are clickable (so a dialog appears)