Skip to content

s2s/query: clarify profile behaviour and API responses#2326

Open
famfo wants to merge 4 commits intomatrix-org:mainfrom
famfo:s2s-profile
Open

s2s/query: clarify profile behaviour and API responses#2326
famfo wants to merge 4 commits intomatrix-org:mainfrom
famfo:s2s-profile

Conversation

@famfo
Copy link
Copy Markdown
Contributor

@famfo famfo commented Mar 2, 2026

Since the existing specification of the behavior is relatively fuzzy, I have chosen the stricter interpretations from multiple places saying something similar.

Pull Request Checklist

Preview: https://pr2326--matrix-spec-previews.netlify.app

@famfo famfo requested a review from a team as a code owner March 2, 2026 00:42
Comment thread data/api/server-server/query.yaml
Comment thread data/api/server-server/query.yaml Outdated
Comment thread data/api/server-server/query.yaml Outdated
Comment on lines +167 to +168
The display name of the user. MUST either be omitted or set to `null` if
the user does not have a display name set.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Aside: I was a bit surprised by this, but then I found d914c40, and this seems to be just a clarification of that changes.

richvdh
richvdh previously approved these changes Mar 10, 2026
Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

LGTM

@richvdh richvdh requested review from zecakeh and removed request for zecakeh March 11, 2026 10:26
@turt2live turt2live requested a review from richvdh March 17, 2026 01:21
@turt2live
Copy link
Copy Markdown
Member

@richvdh it's not clear to me if this is ready to merge or not

@richvdh
Copy link
Copy Markdown
Member

richvdh commented Mar 17, 2026

sorry, I thought it was, but then I saw the requests from @zecakeh for further changes

@richvdh richvdh removed request for richvdh and zecakeh March 17, 2026 10:08
@richvdh richvdh dismissed their stale review March 17, 2026 10:09

more changes needed

Signed-off-by: famfo <famfo@famfo.xyz>
@richvdh
Copy link
Copy Markdown
Member

richvdh commented Mar 31, 2026

@famfo please don't force-push between rounds of review: it makes it very hard to see what has changed since the previous round.

Comment thread changelogs/server_server/newsfragments/2326.clarification Outdated
Comment thread data/api/server-server/query.yaml Outdated
Comment thread data/api/server-server/query.yaml Outdated
Comment thread data/api/server-server/query.yaml Outdated
Comment thread data/api/server-server/query.yaml Outdated
@richvdh richvdh self-requested a review April 7, 2026 10:50
Comment thread data/api/server-server/query.yaml Outdated
Comment thread data/api/server-server/query.yaml Outdated
Comment thread data/api/server-server/query.yaml Outdated
public, such as the display name and avatar.
The profile for the user. If a `field` is specified in the request, the response
MUST only included the specified `field`. If no `field` was specified, the response
SHOULD include all of the fields of the user's profile, which can be made public.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't mean what you want it to mean. In any case, why have you removed the examples of display name and avatar?

Suggested change
SHOULD include all of the fields of the user's profile, which can be made public.
SHOULD include all of the fields of the user's profile that can be made
public, such as the display name and avatar.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Huh, why doesn't that mean what I want it to?

Anyway, I recently encountered a case where this was explicitly not the case but yea, it might be slightly pedantic to remove the note.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh, why doesn't that mean what I want it to?

Because of the comma. "The response SHOULD include all of the fields of the user's profile, which can be made public" means "The response SHOULD include all of the fields of the user's profile. Also, the profile can be made public".

Obviously, it's not the case that the whole of the user's profile can be made public, but that's what's implied by your sentence.

Are you a native German speaker by any chance? I think this is a difference between German and English. (And, for the record, my German is far far worse than your English, so please don't take this as a criticism!)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok this is the only outstanding thread on this PR. If you're happy with my suggestion, please commit it and we can merge.

Comment thread data/api/server-server/query.yaml Outdated
@richvdh richvdh self-requested a review April 23, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants