Incorrect total record count #273
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/shacl-vue#273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
E.g. after submitting a record to token-protected collection:
There is only 1 record, but it shows "1/2".
Looking at the response data stored by
shacl-vue, printed to console:Both the
publicandprotectedurls show the total as being 1, but that is only true for theprotectedurl. Thepublicone should be total 0.This suggests that there is a bug in the way that
pageMetais assigned in theuseDatacomposable: https://github.com/psychoinformatics-de/shacl-vue/blob/main/src/composables/useData.jsThe issue is not in
shacl-vue. Rather, it is the result ofshacl-vuenot understanding and not being able to react to a specific configuration setup ofdumpthings.In this example above, the
dumpthingsbackend has two collections:publicandprotected. If I make a request to thepubliccollection, using my forgejo-generated token (where my forgejo user is part of the curator and protected-write teams), then I get a record which isn't in the public collection but only in the incoming area of my user/token-collection. That was unexpected. The expected part was that when the same request is made to theprotectedcollection, the record in the incoming area of my user/token-collection is returned (which is where the record was posted to in the first place).This happens because of two reasons:
/<collection>/records/p/XYZPerson) you get the curated records and the records from your inbox in that collection. If two records have identical PIDs, the inbox record is returned, because it is favored.protectedandpublicinboxes were the same thing.shacl-vuecan't know this. So to solve it for this particular case, the inboxes can be separated. In the more general case, I am not sure.I believe (some) of this is now resolved by using different inboxes for each collections (instead of a joint inbox for all collections).