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

files: inject files information in the record index. #3642

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

jma
Copy link
Contributor

@jma jma commented Mar 28, 2024

  • Adds custom mappings and jsonschema.
  • Reindex record file when a files is added, updated or removed.
  • Adds the total size taken by the files and the number of main files related to a given record file.

@github-actions github-actions bot added f: search f: data migration Data migration from a legacy system or a previous version labels Mar 28, 2024
@jma jma force-pushed the maj-files-info branch 4 times, most recently from ae858dc to 9a9b097 Compare March 28, 2024 14:24
@jma jma marked this pull request as ready for review March 28, 2024 14:25
Comment on lines 4 to 5
# Copyright (C) 2019-2023 RERO
# Copyright (C) 2019-2023 UCLouvain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright (C) 2019-2024 RERO
# Copyright (C) 2019-2023 UCLouvain could be removed (we didn't work on the files modules)

if f_type not in ["fulltext", "thumbnail"]:
n_main_files += 1
# main files or extracted text
if f_type not in ["fulltext", "thumbnail"] or f_type == "fulltext":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be:

if f_type != "thumbnail":

* Adds custom mappings and jsonschema.
* Reindex record file when a files is added, updated or removed.
* Adds the total size taken by the files and the number of main files related to a given record file.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@jma jma merged commit 33ddeb5 into rero:US2172-files Apr 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: data migration Data migration from a legacy system or a previous version f: search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants