ExportFeed
visual editor creating invalid definitions
#4650
Labels
1 - Bug
Incorrect behavior of the product
2 - App Resources
Issues that are related to app resources
2 - Exporting Data
Issues that are related to exporting data to DwC, GBIF, IPT, Web Portal, etc.
Milestone
Describe the bug
Creating or modifying an
ExportFeed
app resource using the visual editor results in export failures due to a KeyError in the code. The issue stems from attribute naming inconsistencies (i.e.collectionid
instead ofcollectionId
). To ensure functionality, the visual editor must use consistent camelcase for attribute names in line with existing resources.New
ExportFeed
app resource created with the visual editorThis is not working.
After creating or adding to an existing
ExportFeed
app resource using the visual editor inedge
, all exports will fail. The errors look like this on the several databases I tested this on:This error indicates a "KeyError" occurred in the code, specifically when trying to access a key ('collectionId') in a dictionary where this key is not present. That led me to look and see if this key is being created by the visual editor, and lo and behold, it is not.
The visual editor is creating a
collectionid
attribute in<item>
rather thancollectionId
(notice the case difference).Existing
ExportFeed
app resource created manuallyNotice
collectionid
iscollectionId
,userid
isuserId
,notifyuserid
isnotifyUserId
, and all the other names are consistent.The visual editor needs to use the correct keys, so it should use camelcase properly to make it consistent with existing
ExportFeed
resources. If we shipped everything now, users would be unable to create working export feeds and be unable to use the "Update RSS Feed" function after doing so.The text was updated successfully, but these errors were encountered: