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

Cross-signing [1/4] -- hidden devices #5759

Merged

Conversation

uhoreg
Copy link
Member

@uhoreg uhoreg commented Jul 25, 2019

This is a prerequisite for cross-signing, as it allows us to create other things
that live within the device namespace, so they can be used for signatures.

(This is split off from #4970)

This is a prerequisite for cross-signing, as it allows us to create other things
that live within the device namespace, so they can be used for signatures.
@uhoreg uhoreg requested a review from a team July 25, 2019 03:30
Copy link
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. can you give it a changelog file (probably a .misc for now) so that the CI passes, and fix the merge conflict?

Might also be worth adding something to the docstrings of the storage functions to clarify that they exclude hidden devices?

)
sql = """
DELETE FROM devices
WHERE user_id = ? AND device_id = ? AND NOT COALESCE(hidden, ?)
Copy link
Member

Choose a reason for hiding this comment

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

having looked at how this works out, I'm really sorry but I think I'm going to revise my original comments here; it's just too awkward. I think the 30s or so it's going to take to add a NOT NULL column to the table will be worth it for not jumping through these hoops and having to manage a tristate.

Really sorry for vacillating on this.

@@ -0,0 +1,18 @@
/* Copyright 2019 New Vector Ltd
Copy link
Member

Choose a reason for hiding this comment

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

can you give this delta file a different name?

@codecov
Copy link

codecov bot commented Jul 31, 2019

Codecov Report

Merging #5759 into develop will decrease coverage by 0.01%.
The diff coverage is 14.28%.

@@             Coverage Diff             @@
##           develop    #5759      +/-   ##
===========================================
- Coverage    63.44%   63.42%   -0.02%     
===========================================
  Files          331      331              
  Lines        36515    36520       +5     
  Branches      6035     6038       +3     
===========================================
- Hits         23167    23164       -3     
- Misses       11704    11710       +6     
- Partials      1644     1646       +2

@uhoreg uhoreg force-pushed the uhoreg/e2e_cross-signing2-part0 branch from 095524e to c1f0a56 Compare July 31, 2019 16:26
@uhoreg uhoreg requested a review from a team August 1, 2019 06:29
@uhoreg uhoreg changed the base branch from develop to uhoreg/e2e_cross-signing_merged August 12, 2019 22:12
@uhoreg uhoreg merged commit f63ba7a into uhoreg/e2e_cross-signing_merged Aug 12, 2019
babolivier pushed a commit that referenced this pull request Sep 1, 2021
@DMRobertson DMRobertson deleted the uhoreg/e2e_cross-signing2-part0 branch June 28, 2022 11:19
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.

3 participants