Skip to content

12 dataservices refactor#17

Draft
phycodurus wants to merge 9 commits intodevfrom
12-dataservices-refactor
Draft

12 dataservices refactor#17
phycodurus wants to merge 9 commits intodevfrom
12-dataservices-refactor

Conversation

@phycodurus
Copy link
Copy Markdown
Member

still a draft, but I'm not expecting any major changes

phycodurus added 8 commits May 1, 2026 16:25
- `HermesProfile(EncryptableModelMixin, models.Model)`
   - with `hermes_api_key` (encrypted),
   - `hop_username` (plain CharField),
   - `hop_password` (encrypted),
   - `default_topics` (JSONField).
- `credentials.py::resolve_hermes_credentials(user=None)` — lookup
   creds: Profile-first, then `settings.DATA_SHARING['hermes']`
- `__init__.py` — re-exports the public names with an explicit
  `__all__` so callers can import from `tom_hermes.sharing` without
  knowing about the package internal organization.
Four integration points on TomHermesConfig:
- `data_services()`
- `sharing_backends()`
- `profile_details()`
- `include_url_paths()`
- `test_sharing.py` (10 tests)
- `test_dataservice.py` (18 tests)
- `test_alertstream_ingester.py` (4 tests)
- `test_profile.py` (6 tests)
Action required when upgrading: remove
`'tom_hermes.hermes.HermesBroker'` from `settings.TOM_ALERT_CLASSES`
@phycodurus phycodurus requested a review from jchate6 May 2, 2026 00:23
@phycodurus phycodurus linked an issue May 2, 2026 that may be closed by this pull request
The AlertStreamMessage model and the ReducedDatum.message many-to-many
field that referenced it are removed. This commit removes tom_hermes's
references.
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.

DataServices refactor

1 participant