Skip to content

Commit 416b2a5

Browse files
author
thomas loubrieu
committed
add property wildcard test with eq operator
2 parents b09ebfd + a5bee16 commit 416b2a5

21 files changed

+11441
-4875
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -77,30 +77,3 @@ jobs:
7777
with:
7878
name: codeql-artifacts
7979
path: ${{ env.RESULTS_DIR }}
80-
81-
sloc-count:
82-
name: SLOC Count
83-
runs-on: ubuntu-latest
84-
if: github.actor != 'pdsen-ci'
85-
steps:
86-
-
87-
name: 💳 Checkout
88-
uses: actions/checkout@v5
89-
with:
90-
lfs: true
91-
fetch-depth: 0
92-
token: ${{secrets.ADMIN_GITHUB_TOKEN}}
93-
94-
-
95-
name: Count Lines of Code (cloc)
96-
uses: djdefi/cloc-action@6
97-
with:
98-
options: --report-file=cloc.md
99-
100-
101-
-
102-
name: Upload SLOC
103-
uses: actions/upload-artifact@v5
104-
with:
105-
name: sloc-count
106-
path: ${{ github.workspace }}/cloc.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ var/
7272
*.swp
7373
bin/
7474
typescript
75+
.env
7576

7677
# Java stuff
7778
*.javac

CHANGELOG.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
# Changelog
22

3-
## [«unknown»](https://github.com/NASA-PDS/registry/tree/«unknown») (2025-11-19)
3+
## [release/1.5.0](https://github.com/NASA-PDS/registry/tree/release/1.5.0) (2026-01-08)
44

5-
[Full Changelog](https://github.com/NASA-PDS/registry/compare/v1.4.0...«unknown»)
5+
[Full Changelog](https://github.com/NASA-PDS/registry/compare/release/1.6.0...release/1.5.0)
6+
7+
## [release/1.6.0](https://github.com/NASA-PDS/registry/tree/release/1.6.0) (2026-01-07)
8+
9+
[Full Changelog](https://github.com/NASA-PDS/registry/compare/v1.4.0...release/1.6.0)
610

711
**Requirements:**
812

913
- As a user, I want to receive an alert when my registry credentials are readable by someone else than myself [\#424](https://github.com/NASA-PDS/registry/issues/424)
1014
- As a node operator, I want the the registry schema to update autonomously / dynamically when new data is ingested. [\#113](https://github.com/NASA-PDS/registry/issues/113)
1115

16+
**Improvements:**
17+
18+
- Document and script the monthly legacy registry statusing [\#460](https://github.com/NASA-PDS/registry/issues/460)
19+
1220
**Defects:**
1321

22+
- Some properties return "null" values [\#456](https://github.com/NASA-PDS/registry/issues/456) [[s.medium](https://github.com/NASA-PDS/registry/labels/s.medium)]
1423
- lid and pds:Identification\_Area.pds:logical\_identifier do not behave the same in the API [\#423](https://github.com/NASA-PDS/registry/issues/423) [[s.medium](https://github.com/NASA-PDS/registry/labels/s.medium)]
1524
- Some of product urn:nasa:pds:lro\_diviner\_derived2::1.0's fields are not indexed [\#422](https://github.com/NASA-PDS/registry/issues/422) [[s.high](https://github.com/NASA-PDS/registry/labels/s.high)]
1625
- Error `FIPS mode: only SunJSSE TrustManagers may be used` [\#440](https://github.com/NASA-PDS/registry/issues/440) [[s.high](https://github.com/NASA-PDS/registry/labels/s.high)]
@@ -23,12 +32,17 @@
2332

2433
- Troubleshoot SBN 403 Error [\#414](https://github.com/NASA-PDS/registry/issues/414)
2534
- Add the --legacy-sync command option to the EN sweeper in production [\#390](https://github.com/NASA-PDS/registry/issues/390)
35+
- Document password rotation requirements [\#320](https://github.com/NASA-PDS/registry/issues/320)
2636
- Update registry documentation [\#288](https://github.com/NASA-PDS/registry/issues/288)
2737
- Respond to User Questions Regarding Supporting Migration to OpenSearch Serverless [\#275](https://github.com/NASA-PDS/registry/issues/275)
2838

2939
## [v1.4.0](https://github.com/NASA-PDS/registry/tree/v1.4.0) (2025-07-16)
3040

31-
[Full Changelog](https://github.com/NASA-PDS/registry/compare/v1.3.1...v1.4.0)
41+
[Full Changelog](https://github.com/NASA-PDS/registry/compare/release/1.4.0...v1.4.0)
42+
43+
## [release/1.4.0](https://github.com/NASA-PDS/registry/tree/release/1.4.0) (2025-07-16)
44+
45+
[Full Changelog](https://github.com/NASA-PDS/registry/compare/v1.3.1...release/1.4.0)
3246

3347
**Requirements:**
3448

@@ -108,7 +122,11 @@
108122

109123
## [v1.3.1](https://github.com/NASA-PDS/registry/tree/v1.3.1) (2023-11-16)
110124

111-
[Full Changelog](https://github.com/NASA-PDS/registry/compare/v1.3.0...v1.3.1)
125+
[Full Changelog](https://github.com/NASA-PDS/registry/compare/release/1.3.1...v1.3.1)
126+
127+
## [release/1.3.1](https://github.com/NASA-PDS/registry/tree/release/1.3.1) (2023-11-16)
128+
129+
[Full Changelog](https://github.com/NASA-PDS/registry/compare/v1.3.0...release/1.3.1)
112130

113131
**Requirements:**
114132

@@ -237,18 +255,11 @@
237255

238256
## [v1.0.0](https://github.com/NASA-PDS/registry/tree/v1.0.0) (2022-05-03)
239257

240-
[Full Changelog](https://github.com/NASA-PDS/registry/compare/v1.0.0-SNAPSHOT...v1.0.0)
258+
[Full Changelog](https://github.com/NASA-PDS/registry/compare/1f4d45e5a395b8d05b58a0924066dcd3cd0b3565...v1.0.0)
241259

242260
**Requirements:**
243261

244262
- Upgrade the initialization of the ES/OS database following latest upgrade of components [\#31](https://github.com/NASA-PDS/registry/issues/31)
245-
246-
## [v1.0.0-SNAPSHOT](https://github.com/NASA-PDS/registry/tree/v1.0.0-SNAPSHOT) (2022-01-20)
247-
248-
[Full Changelog](https://github.com/NASA-PDS/registry/compare/1f4d45e5a395b8d05b58a0924066dcd3cd0b3565...v1.0.0-SNAPSHOT)
249-
250-
**Requirements:**
251-
252263
- As a developer, I want to include supplemental file data sizes in the registry [\#112](https://github.com/NASA-PDS/registry/issues/112)
253264
- As a node operator, I want to ingest metadata regarding secondary collections that belong to a bundle. [\#109](https://github.com/NASA-PDS/registry/issues/109)
254265
- As a node operator, I want to ingest metadata regarding secondary products that belong to a collection. [\#108](https://github.com/NASA-PDS/registry/issues/108)

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,43 @@ This repository specifically contains these PDS registry application resources:
1919
- the source for the user/administrator documentation, see `docs` folder
2020
- docker compose script to start/test the full application with its required components, see https://github.com/NASA-PDS/registry/blob/main/docker/README.md for details. This also includes integration tests (in `docker/postman`). The integration test datasets are maintained in NASA-PDS/registry-ref-data repository.
2121
- **For developers:** See [Integration Testing Guide](https://nasa-pds.github.io/registry/developer/integration-testing.html) for instructions on adding and running integration tests.
22+
- utility scripts for registry management and reporting, see `scripts` folder
2223

2324

2425
## Code of Conduct
2526

2627
All users and developers of the NASA-PDS software are expected to abide by our [Code of Conduct](https://github.com/NASA-PDS/.github/blob/main/CODE_OF_CONDUCT.md). Please read this to ensure you understand the expectations of our community.
2728

2829

30+
## Scripts
31+
32+
### Registry Status Report Generator
33+
34+
Generate CSV reports for missing and staged products in the PDS Registry:
35+
36+
```bash
37+
# Generate reports and commit/push to GitHub (default)
38+
./scripts/generate_registry_status_reports.py
39+
40+
# Generate reports only, without committing
41+
./scripts/generate_registry_status_reports.py --no-commit
42+
```
43+
44+
**Purpose:** Generates reports for missing and staged products in the registry.
45+
46+
**Output:** Creates four CSV files in `docs/status/`:
47+
- `missing_bundles_in_registry.csv` - Missing Product_Bundle records
48+
- `missing_collections_in_registry.csv` - Missing Product_Collection records
49+
- `staged_bundles_in_registry.csv` - Staged Product_Bundle records
50+
- `staged_collections_in_registry.csv` - Staged Product_Collection records
51+
52+
By default, the script commits and pushes these files to GitHub. Use `--no-commit` to disable this.
53+
54+
**Requirements:**
55+
- Python 3.12 or higher
56+
- `pds-registry-client` and PDS Registry credentials
57+
- See `scripts/README.md` for full configuration details
58+
2959
## Utilities
3060
* Treks
3161
* To deploy the package run one of these commands from the root directory:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
{
3+
"_source": ["node", "lidvid", "product_class"],
4+
"size": 2000,
5+
"query": {
6+
"bool": {
7+
"filter": [
8+
{
9+
"match_phrase": {
10+
"product_class": "Product_Bundle"
11+
}
12+
},
13+
{
14+
"match_phrase": {
15+
"found_in_registry": "false"
16+
}
17+
}
18+
]
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
{
3+
"_source": ["node", "lidvid", "product_class"],
4+
"size": 2000,
5+
"query": {
6+
"bool": {
7+
"filter": [
8+
{
9+
"match_phrase": {
10+
"product_class": "Product_Collection"
11+
}
12+
},
13+
{
14+
"match_phrase": {
15+
"found_in_registry": "false"
16+
}
17+
}
18+
]
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
{
3+
"_source": ["ops:Harvest_Info/ops:node_name", "lidvid", "product_class", "ops:Harvest_Info/ops:harvest_date_time"],
4+
"size": 2000,
5+
"query": {
6+
"bool": {
7+
"filter": [
8+
{
9+
"match_phrase": {
10+
"product_class": "Product_Bundle"
11+
}
12+
},
13+
{
14+
"match_phrase": {
15+
"ops:Tracking_Meta/ops:archive_status": "staged"
16+
}
17+
}
18+
]
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
{
3+
"_source": ["ops:Harvest_Info/ops:node_name", "lidvid", "product_class", "ops:Harvest_Info/ops:harvest_date_time"],
4+
"size": 2000,
5+
"query": {
6+
"bool": {
7+
"filter": [
8+
{
9+
"match_phrase": {
10+
"product_class": "Product_Collection"
11+
}
12+
},
13+
{
14+
"match_phrase": {
15+
"ops:Tracking_Meta/ops:archive_status": "staged"
16+
}
17+
}
18+
]
19+
}
20+
}
21+
}

docker/.env

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ES_DISCOVERY_TYPE=single-node
2222
# --------------------------------------------------------------------
2323

2424
# Docker image of the Registry API
25-
REG_API_IMAGE=nasapds/registry-api-service:1.6.2
25+
REG_API_IMAGE=nasapds/registry-api-service:develop
2626

2727
# Absolute path of the application.properties file to be used for the Registry API
2828
REG_API_APP_PROPERTIES_FILE=./default-config/application.properties
@@ -32,7 +32,7 @@ REG_API_APP_PROPERTIES_FILE=./default-config/application.properties
3232
# --------------------------------------------------------------------
3333

3434
# Docker image of the Registry Loader
35-
REG_LOADER_IMAGE=nasapds/registry-loader:1.1.1
35+
REG_LOADER_IMAGE=nasapds/registry-loader:latest
3636

3737
# --------------------------------------------------------------------
3838
# Registry Sweepers
@@ -73,35 +73,6 @@ TEST_DATA_URL=https://github.com/NASA-PDS/registry-ref-data/releases/download/La
7373
# The lidvid of the test data, which is used to set the archive status (only required, if executing with test data)
7474
TEST_DATA_LIDVID=urn:nasa:pds:mars2020.spice::1.0 urn:nasa:pds:mars2020.spice::2.0 urn:nasa:pds:mars2020.spice::3.0
7575

76-
# --------------------------------------------------------------------
77-
# Registry Harvest Service
78-
# --------------------------------------------------------------------
79-
80-
# Docker image of the Registry Harvest Service
81-
REGISTRY_HARVEST_SERVICE_IMAGE=nasapds/registry-harvest-service:1.2.1
82-
83-
# Absolute path of the Registry Harvest Service configuration file in the host machine (E.g.: /tmp/cfg/harvest-server.cfg)
84-
HARVEST_SERVER_CONFIG_FILE=./default-config/harvest-server.cfg
85-
86-
# --------------------------------------------------------------------
87-
# Registry Crawler Service
88-
# --------------------------------------------------------------------
89-
90-
# Docker image of the Registry Crawler Service
91-
REGISTRY_CRAWLER_SERVICE_IMAGE=nasapds/registry-crawler-service:1.1.0
92-
93-
# Absolute path of the Registry Crawler Service configuration file in the host machine (E.g.: /tmp/cfg/crawler-server.cfg)
94-
CRAWLER_SERVER_CONFIG_FILE=./default-config/crawler-server.cfg
95-
96-
# --------------------------------------------------------------------
97-
# Registry Harvest CLI
98-
# --------------------------------------------------------------------
99-
100-
# Docker image of the Registry Harvest CLI
101-
REGISTRY_HARVEST_CLI_IMAGE=nasapds/registry-harvest-cli:1.1.0
102-
103-
# Absolute path of the Registry Harvest CLI configuration file in the host machine (E.g.: /tmp/conf/harvest-client.cfg)
104-
HARVEST_CLIENT_CONFIG_FILE=./default-config/harvest-client.cfg
10576

10677
# --------------------------------------------------------------------
10778
# Postman Collection Test

docker/docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ services:
8585
elasticsearch:
8686
profiles: ["dev-api", "dev-loader", "pds-core-registry", "int-registry-batch-loader", "os"]
8787
image: ${ES_IMAGE}
88+
ulimits:
89+
nofile:
90+
soft: 65536
91+
hard: 65536
8892
environment:
8993
- discovery.type=${ES_DISCOVERY_TYPE}
9094
# Uncomment the following environment variable to use OpenSearch without security

0 commit comments

Comments
 (0)