review-checklists icon indicating copy to clipboard operation
review-checklists copied to clipboard

Add variant support for checks

Open erjosito opened this issue 2 years ago • 4 comments

A field should be added to checks so that you can have a filter to import it or not. This filter should not be binary, but a list of tags, so that different types of reviews can be performed, either with different depths, focus areas or approaches.

A possibility would be adding the field topics as a list, which could contain values such as design, implementation, alz, etc.

Each checklist client would then decide whether importing all topics, or just a subset.

erjosito avatar Jun 16 '23 07:06 erjosito

@erjosito - I think this works well for the needs. The only alternative that comes to mind would be to add more specific properties like "useCase", "projectScope", "targetAudience", etc but that is less flexible to change and use. As long as we have some consistency in the list values for the "topics" we should be good with this. We want to avoid having items defined with "alz" vs. "azure-landing-zones" vs. "AzureLandingZones"... we can handle for that during PR reviews though.

sdolgin avatar Jun 19 '23 12:06 sdolgin

I think an array/list works nicely. And I'd recommend we add a JSON schema file to help restrict and control consistency in the JSON files for the checklists.

As per: https://json-schema.org/understanding-json-schema/

An example I have implemented here https://github.com/Azure/CAE-Bits/blob/main/schemas/schema.metadata.json

Happy to help.

This also is auto supported by vscode etc.

jtracey93 avatar Jun 20 '23 12:06 jtracey93

A schema is already included, see https://github.com/Azure/review-checklists/blob/main/checklists/checklist.schema.json

erjosito avatar Jun 20 '23 12:06 erjosito

Added topics to schema in #445

erjosito avatar Jun 27 '23 08:06 erjosito