-
Notifications
You must be signed in to change notification settings - Fork 906
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
Add deprecation / addition information to schemas #5867
Add deprecation / addition information to schemas #5867
Conversation
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.
Interesting idea for the enforcement, I wonder if there is a JSON-specific diff that'd be a bit clearer.
doc/lightning-listpeers.7.md
Outdated
- **local\_msat** (msat, optional): Amount of channel we funded (deprecated) | ||
- **remote\_msat** (msat, optional): Amount of channel they funded (deprecated) | ||
- **local\_msat** (msat, optional): Amount of channel we funded **deprecated, removal in v23.5** | ||
- **remote\_msat** (msat, optional): Amount of channel they funded **deprecated, removal in v23.5** |
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.
Needs 0
-padding on the month, otherwise lexicographic sorting of versions is broken.
fc65194
to
c725d22
Compare
Yeah, this is better than nothing, but far from ideal. In practice I wanted to make sure we didn't merge anything which changed the API by accident, and this should suffice for that in practice. |
c725d22
to
dffe061
Compare
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.
ACK dffe061
No longer just delete them! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…mas. This means we will document deprecations and additions, rather than just pretending they've always been that way! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…precate. TODO: It would be great to similarly annotate new/deprecated commands and their parameters. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: doc: we now annotate what versions JSON field additions and deprecations happenened.
…te non-deprcated. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
dffe061
to
9cc372d
Compare
Trivial rebase. Ack 9cc372d |
This opens the door to far better documentation (we used to just not mention now-deprecated fields, and never noted what version a field was added!), but also lets the SQL plugin (#5679) handle deprecations more gracefully (it can ignore anything deprecated before it was released, for example).
Note that #5825 should be rebased onto this (as it currently removes deprecated fields from schema).