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

INF-572 : query formatting / linting and minor refactoring #150

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JulianTonti
Copy link

  • export_unique_list - formatting only
  • export_relations - formatting only
  • export_output_types - formatting only
  • export_metrics - formatting only
  • export_events - formatting only
  • export_dois - formatting and one suggestion
  • export_disciplines - formatting only
  • export_access_types - formatting only
  • create_wos - formatting only
  • create_unpaywall -
    • refactored repositories sub-query
    • replaced binary CASEs with IFs
    • replaced other_platform_categories CASE with COUNTIF
  • create_unpaywall_repo_names - switched to IFNULL
  • create_scopus - formatting only
  • create_ror - formatting only
  • create_orcid - formatting only
  • create_openalex - formatting only
  • create_open_citations - fully refactored query
  • create_mag - formatting, switched one IF for IFNULL
  • create_doi -
    • switched IFs for IFNULLs
    • one query on count field
    • added consistent use of CASTs
    • formatting
  • create_crossref_fundref - formatting only
  • create_crossref_events - formatting only
  • create_book - refactored JavaScript UDF and added tests
  • create_aggregate - formatting only
  • comparison_view - formatting only

* export_unique_list - formatting only
* export_relations - formatting only
* export_output_types - formatting only
* export_metrics - formatting only
* export_events - formatting only
* export_dois - formatting and one suggestion
* export_disciplines - formatting only
* export_access_types - formatting only
* create_wos - formatting only
* create_unpaywall -
  * refactored repositories sub-query
  * replaced binary CASEs with IFs
  * replaced other_platform_categories CASE with COUNTIF
* create_unpaywall_repo_names - switched to IFNULL
* create_scopus - formatting only
* create_ror - formatting only
* create_orcid - formatting only
* create_openalex - formatting only
* create_open_citations - fully refactored query
* create_mag - formatting, switched one IF for IFNULL
* create_doi -
  * switched IFs for IFNULLs
  * one query on count field
  * added consistent use of CASTs
  * formatting
* create_crossref_fundref - formatting only
* create_crossref_events - formatting only
* create_book - refactored JavaScript UDF and added tests
* create_aggregate - formatting only
* comparison_view - formatting only
Copy link
Contributor

@jdddog jdddog left a comment

Choose a reason for hiding this comment

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

Thanks for tidying up the SQL Julian, it is much clearer.

What tool are you using for formatting the SQL? It would be good to standardise our approach so that when others are working on the same files we keep the same formatting.

The unit tests for the DOI Workflow are failing which need to be fixed before we merge 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

Successfully merging this pull request may close these issues.

2 participants