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

Entities merge requests #514

Merged
merged 17 commits into from
Nov 8, 2024
Merged

Entities merge requests #514

merged 17 commits into from
Nov 8, 2024

Conversation

jum-s
Copy link
Contributor

@jum-s jum-s commented Oct 15, 2024

This PR allows dataadmin to review task with more entities types (namely serie, edition, publisher andcollection).

Most of the work has been to display relevant related entities within the task layout (see getRelatedEntitiesSections), which has been kept to direct parents and children entities (ie. no work's authors on series' entities, no authors on edition's entities) to keep it simple for the moment

The other part (create tasks according to their entitiesType) is detailed in the server side PR (inventaire/inventaire#778) since most of the work is done there.

@jum-s
Copy link
Contributor Author

jum-s commented Oct 22, 2024

todo before merge:

  • merge request tasks should have a merge type

@jum-s jum-s mentioned this pull request Oct 23, 2024
app/modules/entities/components/entity_merge.svelte Outdated Show resolved Hide resolved
app/modules/entities/components/entity_image.svelte Outdated Show resolved Hide resolved
app/modules/entities/components/entity_image.svelte Outdated Show resolved Hide resolved
app/modules/entities/components/entity_image.svelte Outdated Show resolved Hide resolved
app/modules/tasks/tasks.ts Show resolved Hide resolved
jum-s added 17 commits November 7, 2024 22:11
work_picker should be the only one using the mergeEntities refresh mecanism, hence transfering the mecanism to it
and display reporters also for human tasks now, as they are not only autogenerated anymore, server side
as 4 different types can now be displayed

relegate task score to an optional separated box, as they will be less
important as autogenerated task will be les prioritized
and remove 'this is fine' message as it should be replaced with a button 'go to dashboard' soon
which was designed to solve hundred of bot generated tasks,
but this PR now prioritise small number of user generated tasks.

Removing the backlog simplifies the code, but it comes with a trade off:
if several users do tasks at the same time, the offset parameter will
leave some undone tasks unseen, since getTask request will only return non
archived tasks.

A way to solve this problem would be to make an
additional request before incrementing the offset to, see is it
returned the same task, is not, it means someone else solved a task in
the meanwhile. But probable YAGNI should let us solves this problems
later if problems arise.
a long wanting feature (imo) to allow close inspection of a cover when solving an edition task

by extenstion this is also adding the feature to edition modal
@maxlath maxlath force-pushed the entities-merge-requests branch from 2d8a9ab to fe57ee5 Compare November 7, 2024 22:50
@maxlath maxlath self-requested a review November 7, 2024 23:04
@jum-s jum-s merged commit 31ef6a7 into main Nov 8, 2024
@jum-s jum-s deleted the entities-merge-requests branch November 8, 2024 13:35
@jum-s jum-s mentioned this pull request Nov 8, 2024
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.

2 participants