Draft
Conversation
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).
11 tasks
11 tasks
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.