Closed jordanpadams closed 2 years ago
@jordanpadams @tloubrieu-jpl don't know exactly how to test this, registry-manager doesn't have load-schema command. gchen@dhcp-137-79-228-248 registry-manager-4.2.0 % ./bin/registry-manager --help [ERROR] Unrecognized option: --help
Usage: registry-manager
Commands:
Data: load-data Load data into registry index delete-data Delete data from registry index export-data Export data from registry index export-file Export a file from blob storage set-archive-status Set product archive status
Registry: create-registry Create registry and data dictionary indices delete-registry Delete registry and data dictionary indices and all its data
Data Dictionary: load-dd Load data into data dictionary delete-dd Delete data from data dictionary export-dd Export data dictionary update-schema Update registry schema
Other: -V, --version Print Registry Manager version
Options:
-help Print help for a command
-v
tried with update-schema but got this error: gchen@dhcp-137-79-228-248 registry-manager-4.2.0 % ./bin/registry-manager update-schema -file ../PDS4_SPECLIB_1F00_1100.JSON [INFO] Elasticsearch URL: http://localhost:9200 [INFO] Index: registry [ERROR] Could not find datatype for field '"0001_NASA_PDS_1.pds.Internal_Reference"'. See 'https://nasa-pds.github.io/pds-registry-app/operate/common-ops.html#Load' for more information.
@gxtchen, the right subcommand is load-dd, see procedure: Registry-mgr load-dd on file PDS4_SPECLIB_1G00_1100.JSON You need to download the file (here toto.json) and then run: $./bin/registry-manager load-dd -dd toto.json -ns speclib
You can check in the elasticsearch instance that the documents (the class definitions) are loaded: http://localhost:9200/registry-dd/_search
๐ Describe the bug
Latest LDDTool now generates JSON files that are incompatible with existing registry-mgr functionality.
Per closeout of https://github.com/NASA-PDS/pds4-information-model/issues/397, what was thought to be a bug is now a new feature of LDDTool, and registry-mgr needs to be updated accordingly to support this.
๐ To Reproduce
Steps to reproduce the behavior:
๐ต๏ธ Expected behavior
๐ Version of Software Used
๐ฉบ Test Data / Additional context
https://github.com/NASA-PDS/pds4-information-model/issues/397
๐Screenshots
๐ฅ System Info
๐ฆ Related requirements
โ๏ธ Engineering Details