refactor: The update checker has become the announcements checker #780

Merged
Jade merged 1 commit from jade/announcements-checker into main 2025-04-20 20:01:53 +00:00
Owner

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.

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.
Jade added 1 commit 2025-04-20 18:35:45 +00:00
refactor: The update checker has become the announcements checker
Some checks failed
Release Docker Image / merge (push) Blocked by required conditions
Release Docker Image / define-variables (push) Successful in 12s
Documentation / Build and Deploy Documentation (pull_request) Failing after 9s
Release Docker Image / define-variables (pull_request) Failing after 0s
Release Docker Image / build-image (linux/amd64, linux-amd64) (pull_request) Has been skipped
Release Docker Image / build-image (linux/arm64, linux-arm64) (pull_request) Has been skipped
Release Docker Image / merge (pull_request) Has been skipped
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Has been cancelled
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Has been cancelled
ebed4940d2
Replaces June's endpoint with a continuwuity endpoint.
Adds a JSON schema.

Closes #89
Closes #760
Jade added 1 commit 2025-04-20 18:41:18 +00:00
fixup! refactor: The update checker has become the announcements checker
Some checks failed
Release Docker Image / define-variables (pull_request) Failing after 0s
Release Docker Image / build-image (linux/amd64, linux-amd64) (pull_request) Has been skipped
Release Docker Image / build-image (linux/arm64, linux-arm64) (pull_request) Has been skipped
Release Docker Image / merge (pull_request) Has been skipped
Documentation / Build and Deploy Documentation (pull_request) Successful in 31s
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
51f8061608
Jade force-pushed jade/announcements-checker from 51f8061608 to 1e92cfe803 2025-04-20 18:59:39 +00:00 Compare
Jade changed title from refactor: The update checker has become the announcements checker to WIP: refactor: The update checker has become the announcements checker 2025-04-20 19:15:56 +00:00
requested review from Owners 2025-04-20 19:15:56 +00:00
Owner

Is this ready for review? It's marked as WIP, but you've requested a review

Is this ready for review? It's marked as WIP, but you've requested a review
Jade changed title from WIP: refactor: The update checker has become the announcements checker to refactor: The update checker has become the announcements checker 2025-04-20 19:46:17 +00:00
Author
Owner

Oops, accidentally clicked that. Should be ready for review.

Oops, accidentally clicked that. Should be ready for review.
nex approved these changes 2025-04-20 19:50:37 +00:00
Dismissed
nex left a comment
Owner

mostly good, few questions

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.
Owner

"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?

"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?
Author
Owner

Forgot to enable it by default.

"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.".

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!

Forgot to enable it by default. > "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.". 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!
Jade marked this conversation as resolved
@ -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.
Owner

Same comment as conduwuit-example.toml

Same comment as conduwuit-example.toml
Jade marked this conversation as resolved
@ -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
Owner

Why 2 hours? This isn't going to be updated frequently, imo every 24 hours will be plenty

Why 2 hours? This isn't going to be updated frequently, imo every 24 hours will be plenty
Author
Owner

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?

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?
Owner

eh, true. 2 hours is fine then.

eh, true. 2 hours is fine then.
nex marked this conversation as resolved
nex requested changes 2025-04-20 19:50:54 +00:00
Dismissed
nex left a comment
Owner

that was not meant to be an approved. I pressed the shiny button

that was not meant to be an approved. I pressed the shiny button
Jade added 1 commit 2025-04-20 19:58:55 +00:00
fixup! refactor: The update checker has become the announcements checker
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Failing after 1s
Release Docker Image / define-variables (pull_request) Successful in 2s
Release Docker Image / define-variables (push) Successful in 12s
Release Docker Image / build-image (linux/arm64, linux-arm64) (pull_request) Successful in 23m4s
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Has been cancelled
Release Docker Image / merge (push) Has been cancelled
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Has been cancelled
Release Docker Image / build-image (linux/amd64, linux-amd64) (pull_request) Successful in 54m40s
Release Docker Image / merge (pull_request) Successful in 29s
16118a7bd7
nex approved these changes 2025-04-20 20:00:30 +00:00
Owner

approved for real this time

approved for real this time
Jade force-pushed jade/announcements-checker from 16118a7bd7 to 2d9bdc0979 2025-04-20 20:01:36 +00:00 Compare
Jade merged commit 2d9bdc0979 into main 2025-04-20 20:01:53 +00:00
Jade deleted branch jade/announcements-checker 2025-04-20 20:01:53 +00:00
Sign in to join this conversation.
No reviewers
nex
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#780
No description provided.