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

Add option to specify series in the uploader #675

Closed
Tracked by #308
LukasKalbertodt opened this issue Jan 19, 2023 · 1 comment · Fixed by #705
Closed
Tracked by #308

Add option to specify series in the uploader #675

LukasKalbertodt opened this issue Jan 19, 2023 · 1 comment · Fixed by #705
Assignees
Labels
area:frontend Everything frontend related area:search Related to Tobira's search kind:new-feature A new feature

Comments

@LukasKalbertodt
Copy link
Member

LukasKalbertodt commented Jan 19, 2023

Fairly straight forward: users might want to directly upload a video into a series. Technically, specifying that in the metadata catalog is easy. We need a searchable select box for that. Thus, I think #360 is a blocker for this.

Regarding "what series can be seen": people decided that we can simply use the series write ACL here. Make the series selectable here iff the user has write access.

@LukasKalbertodt LukasKalbertodt added area:frontend Everything frontend related kind:new-feature A new feature area:search Related to Tobira's search labels Jan 19, 2023
@dagraf
Copy link
Collaborator

dagraf commented Feb 1, 2023

Discussion im meeting:

  • It will be configurable if (or if not) a series must be specified while uploading.
  • When no series gets specified the uploaded event will end up without any connection to a series.

After this first implementation further discussion is needed if a connection to a 'user's series' is needed (if no series gets specified).

@LukasKalbertodt LukasKalbertodt self-assigned this Feb 3, 2023
owi92 added a commit that referenced this issue Feb 15, 2023
…ch index) (#705)

Fixes #675 

This PR:
- Adds the `search_series` DB view (which is used to populate the search
index).
- Installs the appropriate triggers to make sure series are added to the
`search_index_queue` when necessary.
- Adds a search index for series and populates it correctly.
- Uses that search index to make a `SearchableSelect` work with series.
- Uses that `SearchableSelect` to add a series selection to the
uploader.

Additionally, I added tests to make sure all those triggers work as
expected. Those tests revealed that, in fact, those triggers didn't work
as expected. So another migration was added to fix those bugs. See
commit messages for more information. Probably review commit by commit.
(Though the last two commits change previous code, be aware.)

As series are now indexed, we could make the main search now also return
series. I would wait with that though until Meili allows multi-index
search.

I noticed that in our test data, there aren't many series that have
non-empty `write_roles`. So even Sabine can upload in just 2 series
right now. But this "requires write permission to series" is the only
sane condition we can use, and it was specified like that in #675.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend Everything frontend related area:search Related to Tobira's search kind:new-feature A new feature
Projects
Status: Done ✔️
2 participants