-
Notifications
You must be signed in to change notification settings - Fork 704
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
PRDoc new schema #1946
PRDoc new schema #1946
Conversation
- add config - add schema - add template - fix existing prdocs
This PR prevents failures until #1946 is merged.
prdoc/schema_user.json
Outdated
"migration_db": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"name", | ||
"description" | ||
] | ||
}, |
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.
These should be optional parts of the individual audiences.
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.
If you are talking about the rendering, this is OK, it will be done in the templates and we can define what audiences will see the migration_db
info. That can be done for one or several audiences.
If you refer to moving migration_db
inside a specific or multiple audiences in the schema, that will not be very DRY and require providing this information duplicated in some cases.
It is also much easier when editing the prdoc to provide this property close to the top level than down some audiences and have users remember which audience(s) accepts this property.
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.
What will you do with this information that there is a db migration?
A proper prdoc would mention this migration in the proper audience any way to tell the user that it is there. If you only want this for some kind of filtering, fine. However then just add it as optional fields to audience and just a bool to indicate that there is either a db migration or a runtime migration.
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.
The prdoc just holds the information, it does not know how we use it. The prdoc file does notthing.
During the release, all the prdoc files involved in the release will be fed into one or more templates (tbd).
Those will define what we actually do with the informations.
For the example with migration_db
, this will be shown to some audiences.
@kianenigma gave some more examples here. For the migration_db
, the information will be shown to the Runtime dev
only.
prdoc/schema_user.json
Outdated
"host_function": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"description": "List of host functions and their properties", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"enabled": { | ||
"type": "boolean" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"notes": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"enabled", | ||
"description" | ||
] | ||
} |
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.
Same.
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.
Same comment than for the migration_db
.
What could be done however if that makes it easier is to not have db
and runtime
embeded under a migrations
section but leave it flat. It may be even easier this way.
So instead of:
migrations:
db: []
runtime: []
we could have:
db_migrations: []
runtime_migrations: []
This PR prevents failures until #1946 is merged.
@bkchr is the current schema in an acceptable state to get started ? |
|
@chevdor then please remove the |
Ok, I removed the |
wen merge? |
Merge queue setting changed
{"const": "Node Operator", | ||
"title": "Node Operator", | ||
"description": "Those who don't write any code and only run code."}, |
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.
Is it intended that there is no "Validator" option? We would just choose "Node Operator" for that case?
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.
Yes. Most of the changes are equally for both groups and normal node operators are also able to just skip the one validator message for every 5th release.
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.
🔥
## Overview This PR brings in the new version of prdoc v0.0.6 and allows: - local schema - local config - local template It also fixes the existing prdoc files to match the new schema. ## todo - [x] add a brief doc/tldr to help contributors get started - [x] test CI - [x] finalize schema - [x] publish the next `prdoc` cli version (v0.0.7 or above) --------- Co-authored-by: Egor_P <egor@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de>
Overview
This PR brings in the new version of prdoc v0.0.6 and allows:
It also fixes the existing prdoc files to match the new schema.
todo
prdoc
cli version (v0.0.7 or above)