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

'all' command should run only the selected tasks if schema is PICA #265

Closed
pkiraly opened this issue May 5, 2023 · 4 comments
Closed

'all' command should run only the selected tasks if schema is PICA #265

pkiraly opened this issue May 5, 2023 · 4 comments
Milestone

Comments

@pkiraly
Copy link
Owner

pkiraly commented May 5, 2023

The supported tasks are

  • completeness
  • validate
  • authorities
  • classifications
  • marc-history

all-analyses-pica will run these analyses
all will run all-analyses-pica if the $SCHEMA variable is PICA ortherwise all-analyses, then in both case all-solr

@pkiraly pkiraly added this to the PICA: 1.2 milestone May 5, 2023
@pkiraly pkiraly changed the title "all" command should run only the selected tasks if schema is PICA 'all' command should run only the selected tasks if schema is PICA May 5, 2023
@nichtich
Copy link
Collaborator

nichtich commented May 5, 2023

The ANALYSES variable can be set to completeness,validate,authorities,classifications,marc-history to do so.

@pkiraly
Copy link
Owner Author

pkiraly commented May 5, 2023

Do you mean such like this?

if [ "${SCHEMA:-}" == "PICA" ]; then
  ALL_ANALYSES=validate,validate_sqlite,completeness,completeness_sqlite,classifications,authorities,marc_history
else
  ALL_ANALYSES=validate,validate_sqlite,completeness,completeness_sqlite,classifications,authorities,tt_completeness,shelf_ready_completeness,serial_score,functional_analysis,pareto,marc_history
fi
ANALYSES=${ANALYSES:-$ALL_ANALYSES}

@nichtich
Copy link
Collaborator

nichtich commented May 5, 2023

I also added command config, to show setting of all configuration parameters without actually executing any task.

@pkiraly
Copy link
Owner Author

pkiraly commented May 5, 2023

I saw that and I like it!

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

No branches or pull requests

2 participants