Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Notifier] [BlueSky] Change the value returned as the message ID#59742

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:7.2fromjaviereguiluz:fix_59739
Feb 11, 2025

Conversation

javiereguiluz
Copy link
Member

QA
Branch?7.2
Bug fix?yes
New feature?no
Deprecations?no
Issues#59739
LicenseMIT

Some BlueSky API actions require both thecid and theuri (seehttps://docs.bsky.app/docs/tutorials/like-repost) so we might re-add thecid to SentMessage'sinfo in Symfony 7.3.

@javiereguiluzjaviereguiluz added this to the7.2 milestoneFeb 10, 2025
@carsonbotcarsonbot changed the title[Notifier][BlueSky] Change the value returned as the message ID[Notifier] [BlueSky] Change the value returned as the message IDFeb 10, 2025
@alexandre-daubois
Copy link
Member

alexandre-daubois commentedFeb 10, 2025
edited
Loading

This snippet can be added toBlueSkyTransportTest to validate the fix:

publicfunctiontestUriIsSetAsMessageId(){$client =newMockHttpClient(function () {returnnewJsonMockResponse(['uri' =>'https://example.com','cid' =>'my_cid',        ]);    });$transport =self::createTransport($client);$message =$transport->send(newChatMessage('Hello!'));$this->assertSame('https://example.com',$message->getMessageId());}
GromNaN and javiereguiluz reacted with thumbs up emoji

@javiereguiluz
Copy link
MemberAuthor

Alex, thanks a lot for creating the test for this 🙏

I only changed the values of the uri/cid to make them a bit more realistic because the BlueSky URI uses an uncommon format and it's better to test that too. Thanks.

alexandre-daubois reacted with thumbs up emoji

@@ -5,6 +5,7 @@ CHANGELOG
---

* Add option to attach a media
* [BC Break] Change the returned message ID from record's 'cid' to 'uri'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should be reverted as changelogs are auto-updated for bugfixes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Only the main CHANGELOG. Here, we want to signify something unusual, I think it's fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fine for me as well, but I think it's worth noticing that we had similar discussions in the past and the conclusion was it's either a bugfix or a BC break, not both.

@nicolas-grekas
Copy link
Member

Thank you@javiereguiluz.

@nicolas-grekasnicolas-grekas merged commit6262b65 intosymfony:7.2Feb 11, 2025
6 checks passed
@javiereguiluzjaviereguiluz deleted the fix_59739 branchFebruary 11, 2025 07:41
nicolas-grekas added a commit that referenced this pull requestFeb 18, 2025
…al info (javiereguiluz)This PR was squashed before being merged into the 7.3 branch.Discussion----------[Notifier] [Bluesky] Return the record CID as additional info| Q             | A| ------------- | ---| Branch?       | 7.3| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Issues        | -| License       | MITSome Bluesky API operations (like replies and quotes) require "strong references", which is the combination of the `uri` and the `cid` (Seehttps://docs.bsky.app/docs/advanced-guides/posts#replies-quote-posts-and-embeds).After the changes made in#59742, we should also return the `cid` as additional info.Commits-------85a073e [Notifier] [Bluesky] Return the record CID as additional info
@fabpotfabpot mentioned this pull requestFeb 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@chalasrchalasrchalasr left review comments

@OskarStarkOskarStarkOskarStark approved these changes

@alexandre-dauboisalexandre-dauboisalexandre-daubois approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.2
Development

Successfully merging this pull request may close these issues.

7 participants
@javiereguiluz@alexandre-daubois@nicolas-grekas@fabpot@OskarStark@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp