chore: Error on missing ID in messages #802

Merged
Jade merged 1 commit from jade/messages-more-strict-validation into main 2025-04-27 17:05:23 +00:00
Owner

Slight tweak to #757, to help make sure any unexpected behavior here is caught

Slight tweak to https://forgejo.ellis.link/continuwuation/continuwuity/pulls/757, to help make sure any unexpected behavior here is caught
Jade added 1 commit 2025-04-25 22:53:47 +00:00
chore: Error on missing ID in messages
Some checks failed
Release Docker Image / define-variables (push) Successful in 1s
Release Docker Image / define-variables (pull_request) Successful in 1s
Documentation / Build and Deploy Documentation (pull_request) Successful in 33s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Successful in 20m27s
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Successful in 20m14s
Release Docker Image / build-image (linux/arm64, linux-arm64) (pull_request) Successful in 3m27s
Release Docker Image / merge (push) Failing after 46s
Release Docker Image / build-image (linux/amd64, linux-amd64) (pull_request) Successful in 46m58s
Release Docker Image / merge (pull_request) Failing after 45s
fccffbdb65
requested review from nex 2025-04-26 20:55:49 +00:00
Author
Owner

@nex Just want to check this doesn't regress your usecase

@nex Just want to check this doesn't regress your usecase
Owner

@Jade wrote in #802 (comment):

@nex Just want to check this doesn't regress your usecase

Will test now

@Jade wrote in https://forgejo.ellis.link/continuwuation/continuwuity/pulls/802#issuecomment-15555: > @nex Just want to check this doesn't regress your usecase Will test now
Owner

Compile warning, but it might be unrelated:

   Compiling conduwuit_service v0.5.0-rc.5 (/home/nex/Downloads/continuwuity/src/service)
warning: field `server` is never read
  --> src/service/moderation.rs:13:6
   |
12 | struct Services {
   |        -------- field in this struct
13 |     pub server: Arc<Server>,
   |         ^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

   Compiling conduwuit_api v0.5.0-rc.5 (/home/nex/Downloads/continuwuity/src/api)
warning: `conduwuit_service` (lib) generated 1 warning
Compile warning, but it might be unrelated: ``` Compiling conduwuit_service v0.5.0-rc.5 (/home/nex/Downloads/continuwuity/src/service) warning: field `server` is never read --> src/service/moderation.rs:13:6 | 12 | struct Services { | -------- field in this struct 13 | pub server: Arc<Server>, | ^^^^^^ | = note: `#[warn(dead_code)]` on by default Compiling conduwuit_api v0.5.0-rc.5 (/home/nex/Downloads/continuwuity/src/api) warning: `conduwuit_service` (lib) generated 1 warning ```
Author
Owner

Yeah, that's cause I hadn't rebased it to include dcbacb5b78 yet

Yeah, that's cause I hadn't rebased it to include dcbacb5b78ac679ddb17465c9e60042cff4ab3e7 yet
Author
Owner

Anything in the logs with the string No device_id provided and no appservice registration found, this should be unreachable?

Anything in the logs with the string `No device_id provided and no appservice registration found, this should be unreachable`?
Jade force-pushed jade/messages-more-strict-validation from fccffbdb65 to 1a5ab33852 2025-04-27 16:35:40 +00:00 Compare
nex approved these changes 2025-04-27 16:36:47 +00:00
nex left a comment
Owner

Given it a quick test, looks to work fine for the appservice.

Given it a quick test, looks to work fine for the appservice.
Owner

@Jade wrote in #802 (comment):

Anything in the logs with the string No device_id provided and no appservice registration found, this should be unreachable?

Nope, I just forgot how /messages works 😅

@Jade wrote in https://forgejo.ellis.link/continuwuation/continuwuity/pulls/802#issuecomment-15584: > Anything in the logs with the string `No device_id provided and no appservice registration found, this should be unreachable`? Nope, I just forgot how /messages works 😅
Jade merged commit 1a5ab33852 into main 2025-04-27 17:05:23 +00:00
nex added the
Bug
label 2025-04-27 18:38:45 +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#802
No description provided.