-
Notifications
You must be signed in to change notification settings - Fork 511
fix: add scheduling meta data #16784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dc37a9a to
4af0d13
Compare
|
Can we add a test? |
|
/backport to stable33 |
| * createdAt: int, | ||
| * sendAt: int, | ||
| * silent: bool, | ||
| * originalSendAt?: int, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add inline docs when this is the case and on sendAt document when it could be 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add inline docs when this is the case and on sendAt document when it could be 0
What does that look like? Add it on the toArray() Method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spreed/lib/ResponseDefinitions.php
Line 265 in 27e1e62
| * // The unique identifier for the given actor type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spreed/lib/ResponseDefinitions.php
Line 265 in 27e1e62
* // The unique identifier for the given actor type
Neat, thanks, I wasn't sure what was meant with "Inline docs" 🙈
Antreesy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the data to the current test setup, it will run any time sendAt is 0 |
There was no integration test failing before. IIRC potential test would be:
|
Literally
|
|
Right, then we can add That basically would test your PR |
Why, it's already being added in the FeatureContext: if ($row['sendAt'] !== '0') {
$row['sendAt'] = self::$messageIdToTimestamp[$row['id']];
} else {
$row['originalSendAt'] = self::$messageIdToTimestamp[$row['id']];
} |
|
Ah, now I see it. |
|
I added a small commit to make the test more clear, let me know what you think |
Looks good, thanks for that! Shall I squash and rebase? |
|
After you added the docs you can do that yeah |
0120384 to
07f50ba
Compare
[skip-ci] Signed-off-by: Anna Larch <anna@nextcloud.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
cb0f258 to
06a9cb7
Compare

☑️ Resolves
Fixes #16777
🛠️ API Checklist
🚧 Tasks
🏁 Checklist
docs/has been updated or is not required