Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Make 'event_id' a required parameter in federated state requests #4741

Merged
merged 3 commits into from
Feb 27, 2019

Conversation

hawkowl
Copy link
Contributor

@hawkowl hawkowl commented Feb 25, 2019

Paired with matrix-org/sytest#566, replaces #4740

Closes #3646

From the original PR:

As per the spec: https://matrix.org/docs/spec/server_server/r0.1.1.html#id40

Closes #3646

Signed-off-by: Joseph Weston [[email protected]](mailto:[email protected])

@hawkowl hawkowl requested a review from a team February 25, 2019 20:27
@hawkowl hawkowl changed the title Jbweston/state request over federation Make 'event_id' a required parameter in federated state requests Feb 25, 2019
@codecov-io
Copy link

codecov-io commented Feb 25, 2019

Codecov Report

Merging #4741 into develop will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop   #4741      +/-   ##
==========================================
+ Coverage     75.1%   75.1%   +<.01%     
==========================================
  Files          340     340              
  Lines        34853   34853              
  Branches      5709    5709              
==========================================
+ Hits         26175   26178       +3     
+ Misses        7067    7065       -2     
+ Partials      1611    1610       -1

Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

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

I'm assuming that the code would 500 further on if an event_id wasn't specified

@hawkowl
Copy link
Contributor Author

hawkowl commented Feb 27, 2019

Thanks again to @jbweston for contributing this patch.

@hawkowl hawkowl merged commit b131cc7 into develop Feb 27, 2019
@hawkowl hawkowl deleted the jbweston/state-request-over-federation branch February 27, 2019 22:35
@jbweston
Copy link
Contributor

I'm assuming that the code would 500 further on if an event_id wasn't specified

I just saw that the spec says that it's a required parameter:
https://matrix.org/docs/spec/server_server/r0.1.1.html#id40

I'm not sure if it makes sense for the spec to define it as a required parameter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants