Skip to content

42 update tom alertstreams for lsst#52

Draft
phycodurus wants to merge 16 commits intodevfrom
42-update-tom_alertstreams-for-lsst
Draft

42 update tom alertstreams for lsst#52
phycodurus wants to merge 16 commits intodevfrom
42-update-tom_alertstreams-for-lsst

Conversation

@phycodurus
Copy link
Copy Markdown
Member

No description provided.

The FIFOQueueMixin class turns the Model's db table
into a FIFO queue of the most recent alerts. The
Alert model is just a generic data structure for
an alert from a stream. Register new model with
admin pages
Uses integration points to add URL patterns
and navbar item. Defines a basic HTMX table
View for the Alerts model.
Adds pydanic dependency to pyproject.toml.
Defines a normalization mechanism for alerts.
Adds a handler that works for any properly implemented
and configured AlertStream subclass, demonstrating
normalization mechanism. (`save_alert_to_database`
adds alerts to the models.Alert(FIFOQueueMixin)
db table.
this introduces the AlertStreamPresenter class and it's
stream-specific subclasses. This allows the AlertTable to
create links to <objectID>s and <alertID>s as appropriate
for each alert stream. (And the AlertStream class itself
doesn't have to know about any of that).
This had to do with creating links to display in an
alert table that is separate from reading the stream,
which is what these classes do. (Single Responsibilty
Principle ftw).
@phycodurus phycodurus linked an issue Mar 23, 2026 that may be closed by this pull request
11 tasks
@phycodurus phycodurus removed a link to an issue Mar 23, 2026
11 tasks
@phycodurus phycodurus linked an issue Mar 23, 2026 that may be closed by this pull request
11 tasks
@jchate6 jchate6 moved this to Needs Review in TOM Toolkit Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

update tom_alertstreams for LSST

2 participants