AppConfiguration icon indicating copy to clipboard operation
AppConfiguration copied to clipboard

Support short comment or description for key value pairs in Configuration Explorer

Open k8edev opened this issue 4 years ago • 5 comments

I would like to associate a short comment with my key value pair to provide context on its meaning. In my case, we are storing client IDs, and I would like to associate each ID with a short comment saying which application/Azure resource it points to.

I see that we can add Tags to individual key-value pairs. If the Tags could be visible in the default view of the Configuration Explorer, that would also solve the problem for me.

k8edev avatar May 21 '20 17:05 k8edev

@ccowden the scenario you described makes sense to me. Tags are also the place I would recommend to save this information. To show this information in the default view of the Configuration Explorer, however, needs the support for UI customization. As you can imagine, one field could be important for one user but could be totally waste of space for another user.

Thanks for the feedback. We will take this into consideration for future design.

zhenlan avatar May 22 '20 19:05 zhenlan

Tags seem absolutely necessary to be able to identify quickly which ressource use which setting. That's something that we can see in KeyVault so it makes sense to be able to see it in Azure App Configuration as well. Maybe it does not make sense for all users but maybe you can make the UI configurable depending on what the user wants to see.

TechWatching avatar Jun 19 '20 07:06 TechWatching

I suggest that there's description column for the configuration explorer, too. Sometimes, we have restrictions on the fields, e.g. it must be positive number, or must be provided with another configuration item, etc. The descriptions on the fields are necessary. Without it on portal, we have to maintain a separate doc on these fields, and have to consider the different descriptions for different versions. I also post a feature request

HFCherish avatar Aug 10 '20 07:08 HFCherish

These are great points! Looking forward, I think we may need an option to allow some sort of a schema here. Description alone may not be enough to deal with constraints long term.

There is relatively new RFC draft for json schema (https://json-schema.org/). The support looks good across tools and libraries. It also fits well with our upcoming support for key-value media type application/json. The schema also supports description. Portal and other tools can apply and validate the schema.

Here is an example:

Key-Value:

key: "discount" value: "33.3" content-type: "application/json"

Schema:

{
    "$schema": "https://json-schema.org/draft/2019-09/schema",
    "description": "Percent discount",
    "type": "number",
    "minimum": 0,
    "maximum": 100
}

drago-draganov avatar Sep 18 '20 01:09 drago-draganov

Any progress on this? and are these features being considered? I particularly would want to request for Descriptions field. Would save documenting our configs separately elsewhere and have them out of sync.

Edgaras91 avatar Dec 29 '21 15:12 Edgaras91

Hello all,

we added the capability to display tags in the default view of the configuration explorer. The tags column should be added via configuration explorer settings. See below:

image

I will close this issue since the original post mentions this as a solution.

@drago-draganov please let me know if you'd like me to open a separate issue to track json schema

jimmyca15 avatar Jul 31 '23 21:07 jimmyca15