Repository navigation
feat: reef notifications for RFCs should include the full RFC - #63
Conversation
… because that's useful for display purposes. Also refactor Reef to validate a subset of Red RFCCommon schema, and GIGO the rest
There was a problem hiding this comment.
As I understand, with this PR reef will store additional info about each RFC for each notification.
I think this introduces 2 issues to evaluate:
- redundant info (rfc data is stored per user; each notification holds the RFC info, so this will grow with each new subscriber)
- RFC data will become stale over time; RFC metadata might be updated, but the card will show the original (stale) data
I wonder if its better to have reef only store the reference (e.g. rfc10032) and get details from red's index - as I understand it works currently like that - and use that data for the cards.. possibly with some caching if needed.
EDIT: we already have cards for the RFCs in sets. can that logic be re-used for the web notifications?
Looks to me like it will do this. I think the red data include the abstract. If the pass-by-name method is hard to make work for some reason, I think dropping that might help considerably. Could also limit to a set of fields that are likely to be relevant. Or run with this for now and prune later. Unless we have ~millions of notifications, the scaling is tolerable I expect. Do
Also correct, but I think that's either acceptable or even desirable. The notification reflects the event that occurred, and later changes should get their own notification if they're important enough to call out. It should be rare. |
| # A second fetch, because the shared cache the changes came from holds the | ||
| # reduction alone. It can be a newer reading than that one, which is | ||
| # harmless: the entry is what a reader is shown about the document, not | ||
| # anything compared. |
There was a problem hiding this comment.
Comprehensibility issue: I have read this comment several times and have no idea what it's saying
There was a problem hiding this comment.
The 'reduction' is the subset of fields that Reef cares about in an RFC and that's what the cache has, not the full RFC document as defined by RFCCommon in Red.
The comment is saying that the cache has the subset, so we need to refetch it.
There was a problem hiding this comment.
Rewritten. I gave some stern words to Claude
No, currently not. Probably a question for RPC if/when they should expire |
|
Storing the RFC with the notification as a snapshot was intentional (the RFC could change if we evaluated this lazily when they view the web notification). I agree that old webnotifications should be pruned. |
|
ok fair point... notification is "at one point in time" and might become stale |
feat
chore