Skip to content

administration: adds harvester view#701

Open
jrcastro2 wants to merge 1 commit intoCERNDocumentServer:masterfrom
jrcastro2:add-harvest-reports
Open

administration: adds harvester view#701
jrcastro2 wants to merge 1 commit intoCERNDocumentServer:masterfrom
jrcastro2:add-harvest-reports

Conversation

@jrcastro2
Copy link
Contributor

Showcase

Grabacion.de.pantalla.2026-02-18.a.las.13.46.11.mov

Email example

Captura de pantalla 2026-02-18 a las 13 32 54

/**
* Custom Empty Results component (without showing the query)
*/
export const CustomEmptyResults = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this to hide the query from the user, the default one shows it and we are "manipulating" it ot add the timestamp

const { sortOptions, sortOrderDisabled } = useContext(SearchConfigurationContext);

// Derive selected run from query string
const runIdFromQuery = extractRunIdFromQuery(currentQueryState.queryString, runs);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Couldnt find a better way. Happy to hear other ideas but I had issues with RSK storing the value of the run in this cmp. It would always fall back to initalquery set and not properly store it. So cant keep track of which run is being showed (unless the run id would be part of the URL params, since the audit logs have no reference to it, it doesn't make any sense to me)

/**
* Extract user's search terms from full query string
*/
export const extractUserSearch = (queryString) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we need to "enrich" the URL with the timestamp information to select a run we want to hide this from the user

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.

harvester - reports for curators

1 participant

Comments