Skip to content

restr field stored as hardcoded "OPEN" in MongoDB — restriction status not persisted, only resolved at query time #55

@NikolaosSokos

Description

@NikolaosSokos

The availability MongoDB collection always stores restr: "OPEN" for every
record, regardless of the actual restriction status of the stream. This has been
the case since the first version of views/main.js.

The real restriction status is resolved at query time in _apply_restricted_bit()
(apps/wfcatalog_client.py), which cross-references the segment's SEED ID against
the Redis-cached station inventory from ws-station.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions