refactor: The update checker has become the announcements checker #780
No reviewers
Labels
No labels
Bug
Cherry-picking
Dependencies
Documentation
Duplicate
Enhancement
Good first issue
Help wanted
Inherited
Invalid
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Federation
Matrix/MSC
Matrix/Media
Meta
Performance
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Priority
Unknown
Security
Wont fix
no-priority
old/blocked
old/ci/cd
old/core-matrix
old/database
old/github_actions
old/high-priority
old/low-priority
old/medium-priority
old/question
old/rocksdb
old/rust
packaging
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: continuwuation/continuwuity#780
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "jade/announcements-checker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces June's endpoint with a continuwuity endpoint.
Adds a JSON schema.
Closes #89
Closes #760
Note that I haven't tested this, but there aren't any actual logic changes so we should be good.
51f8061608
to1e92cfe803
refactor: The update checker has become the announcements checkerto WIP: refactor: The update checker has become the announcements checkerIs this ready for review? It's marked as WIP, but you've requested a review
WIP: refactor: The update checker has become the announcements checkerto refactor: The update checker has become the announcements checkerOops, accidentally clicked that. Should be ready for review.
mostly good, few questions
@ -119,3 +117,4 @@
# announcements or major updates. This is not an update check endpoint.
#
# This is disabled by default as this is rarely used except for security
# updates or major updates.
"This is not an update check endpoint." followed by "This is disabled by default as this is rarely used except for security updates or major updates.".
Also, aren't we enabling this by default?
Forgot to enable it by default.
Perhaps better clarified as, "This is disabled by default as this is rarely used except for security [announcements] or major update [announcements] ."
Removed anyway, as the prior text is sufficient and hopefully usage won't be infrequent!
@ -167,3 +165,4 @@
/// announcements or major updates. This is not an update check endpoint.
///
/// This is disabled by default as this is rarely used except for security
/// updates or major updates.
Same comment as conduwuit-example.toml
@ -0,0 +57,4 @@
const CHECK_FOR_ANNOUNCEMENTS_URL: &str =
"https://continuwuity.org/.well-known/continuwuity/announcements";
const CHECK_FOR_ANNOUNCEMENTS_INTERVAL: u64 = 7200; // 2 hours
Why 2 hours? This isn't going to be updated frequently, imo every 24 hours will be plenty
This was the original value. I didn't reduce it because if we do use it for anything urgent, 24 hours as the max time till someone receives it might be a bit too long. There's no particular harm in a higher check frequency here, I don't think?
eh, true. 2 hours is fine then.
that was not meant to be an approved. I pressed the shiny button
approved for real this time
16118a7bd7
to2d9bdc0979