You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The query for the species list is: https://spatial.ala.org.au/ws/layers.json
This query does not include a date parameter, so it fetches all data. To identify new records, the DiffService needs to compare the previous and current results.
JSON ID Path: name
JSON Record Path: $[*]
This configuration returns a list of records and uses name as the identifier.
Property Path Configuration:
name: layer_count
path: $
fireWhenNotZero: true
fireWhenChange: false
The layer_count property implies that it returns the total number of records when fireWhenNotZero is true. However, this setup is incorrect because the DiffService only returns the length of the last result; it does not compare it with previous records. As mentioned, this query always retrieves all layers.
If fireWhenChange is set to true, the property name layer_count should be renamed to something more descriptive, like layer_name. Ideally, the DiffService should return the name of the last record, allowing for proper tracking of changes.
A simple solution is to set both fireWhenNotZero and fireWhenChange to false, allowing the DiffService to perform a full comparison.
The query for the species list is:
https://spatial.ala.org.au/ws/layers.json
This query does not include a date parameter, so it fetches all data. To identify new records, the DiffService needs to compare the previous and current results.
This configuration returns a list of records and uses name as the identifier.
Property Path Configuration:
The layer_count property implies that it returns the total number of records when fireWhenNotZero is true. However, this setup is incorrect because the DiffService only returns the length of the last result; it does not compare it with previous records. As mentioned, this query always retrieves all layers.
If fireWhenChange is set to true, the property name layer_count should be renamed to something more descriptive, like layer_name. Ideally, the DiffService should return the name of the last record, allowing for proper tracking of changes.
A simple solution is to set both fireWhenNotZero and fireWhenChange to false, allowing the DiffService to perform a full comparison.
Future work: #330
The text was updated successfully, but these errors were encountered: