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

datastation-module-versions #49

Merged
merged 13 commits into from
Nov 28, 2023

Conversation

janvanmansum
Copy link
Contributor

@janvanmansum janvanmansum commented Nov 27, 2023

NO JIRA

Description of changes

Added a command datastation-get-component-versions which prints a table of the installed component versions, e.g.,

[vagrant@archaeology dans-datastation-tools]$ poetry run datastation-get-component-versions
                         Data Station Component Versions                         
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Component                               ┃ Version                             ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ dans.knaw.nl-dd-validate-dans-bag       │ 0.33.0                              │
│ dans.knaw.nl-dd-ingest-flow             │ 0.57.0                              │
│ dans.knaw.nl-dd-vault-metadata          │ 2.2.0                               │
│ dans.knaw.nl-dans-schema                │ 0.13.0                              │
│ dans.knaw.nl-dd-verify-migration        │ 2.5.0                               │
│ dans.knaw.nl-dd-virus-scan              │ 0.8.0                               │
│ dans.knaw.nl-dd-sword2                  │ 0.14.0                              │
│ dans.knaw.nl-dd-dataverse-authenticator │ 0.10.0                              │
│ dans.knaw.nl-dd-verify-dataset          │ 0.12.0                              │
│ dans.knaw.nl-dd-manage-deposit          │ 0.4.0                               │
│ dataverse                               │ 5.14 build DANS-DataStation-PATCH-4 │
│ payara                                  │ 5.2022.5                            │
└─────────────────────────────────────────┴─────────────────────────────────────┘


Handy for application managers to get a quick overview of the current baseline.

How to test

Check out the branch on a vagrant box or a server, do poetry install and then poetry run. Make sure you have the following section in your config file:

version_info:
  dans_rpm_module_prefix: 'dans.knaw.nl-'
  dataverse_application_path: '/var/lib/payara5/glassfish/domains/domain1/applications/dataverse/'
  payara_install_path: '/usr/local/payara5'

Notify

@DANS-KNAW/dataversedans

@janvanmansum janvanmansum changed the title WIP datastation-module-versions Nov 27, 2023
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (b0fd29f) 41.31% compared to head (1ae596c) 42.96%.

Files Patch % Lines
src/datastation/common/version_info.py 83.33% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
+ Coverage   41.31%   42.96%   +1.65%     
==========================================
  Files          16       17       +1     
  Lines         731      761      +30     
==========================================
+ Hits          302      327      +25     
- Misses        429      434       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@janvanmansum janvanmansum marked this pull request as ready for review November 28, 2023 10:25
@janvanmansum janvanmansum requested a review from a team as a code owner November 28, 2023 10:25
@janvanmansum
Copy link
Contributor Author

TODO: Solr, PostGreSQL

@janvanmansum janvanmansum merged commit 80354d8 into DANS-KNAW:master Nov 28, 2023
5 checks passed
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.

1 participant