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

stats: move the description of newly added fields to init #315

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ DATACITE_PREFIX = ""
DATACITE_TEST_MODE = True
DATACITE_DATACENTER_SYMBOL = ""

RDM_PERSISTENT_IDENTIFIERS["doi"]["required"] = False
RDM_PERSISTENT_IDENTIFIERS["doi"]["ui"]["default_selected"] = "not_needed" # "yes", "no" or "not_needed"
RDM_PARENT_PERSISTENT_IDENTIFIERS["doi"]["required"] = False

# Authentication - Invenio-Accounts and Invenio-OAuthclient
# =========================================================
# See: https://inveniordm.docs.cern.ch/customize/authentication/
Expand Down Expand Up @@ -519,6 +515,7 @@ RDM_RECORDS_PERSONORG_SCHEMES = {**RDM_RECORDS_PERSONORG_SCHEMES,
RDM_PERSISTENT_IDENTIFIERS["doi"]["required"] = False
RDM_PARENT_PERSISTENT_IDENTIFIERS["doi"]["required"] = False
RDM_PERSISTENT_IDENTIFIERS["doi"]["ui"]["default_selected"] = "not_needed" # "yes", "no" or "not_needed"

# Invenio-Preservation-Sync
# =========================

Expand Down
11 changes: 10 additions & 1 deletion site/cds_rdm/stats/templates/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@
# CDS-RDM is free software; you can redistribute it and/or modify it under
# the terms of the MIT License; see LICENSE file for more details.

"""Statistics events search index templates."""
"""Statistics events search index templates.

The templates were overridden to include the custom fields in the search index.

Specifically, the following fields were added to the search index:

- `is_lcds` (boolean): This field marks all statistical events that have been migrated from the legacy CDS system.
- `before_COUNTER` (boolean): This field applies to all migrated events where no information was available to determine whether they were human or robot events. This was later resolved with the implementation of a proper robot-checking mechanism, ensuring COUNTER compliance.

"""
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@
"type": "boolean"
},
"is_lcds": {
"type": "boolean",
"description": "This field marks all statistical events that have been migrated from the legacy CDS system."
"type": "boolean"
},
"before_COUNTER": {
"type": "boolean",
"description": "This field applies to all migrated events where no information was available to determine whether they were human or robot events. This was later resolved with the implementation of a proper robot-checking mechanism, ensuring COUNTER compliance."
"type": "boolean"
},
"updated_timestamp": {
"type": "date"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@
"type": "boolean"
},
"is_lcds": {
"type": "boolean",
"description": "This field marks all statistical events that have been migrated from the legacy CDS system."
"type": "boolean"
},
"before_COUNTER": {
"type": "boolean",
"description": "This field applies to all migrated events where no information was available to determine whether they were human or robot events. This was later resolved with the implementation of a proper robot-checking mechanism, ensuring COUNTER compliance."
"type": "boolean"
},
"updated_timestamp": {
"type": "date"
Expand Down