-
Notifications
You must be signed in to change notification settings - Fork 8
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
organizing the lists #1
Comments
I think trying to classify rules with comments will quickly become unmanageable. What I suggest:
|
What we should do is written in #9 (comment)
Quite inconvenient… Also, this way "comments" can't be changed without changing the line itself. Remark: AFAICT github (currently) does not use the
Why would you sort them alphabetically?
Are there any advantages of sorting over grouping?
IMHO we should extend the format of the subscription list file, currently {
"subscriptions":{
"allow_embedded":{
"serial":1329159661,
"url":"https://…/subscriptions/master/official-allow_embedded.json"
}
}
} and I propose something like the following: {
"l10n": "https://…/subscriptions/master/locale/**language-code**.json",
"region-specific": "https://…/subscriptions/master/regions/**region-or-country**/official.json",
"subscriptions":{
"allow_embedded":{
"serial":1329159661,
"url":"https://…/subscriptions/master/official-allow_embedded.json",
"title": "My title goes here",
"description": "Description of allow_embedded…"
}
}
} The Having the description in the json file makes the subscription system independent from the source code. Currently the list is hard-coded. Also this would make RP ready for unofficial subscriptions – it would be optional though. Btw, we might have to create new issues for what I've been proposing. |
@myrdd Because it makes it a lot easier to find if a rule already exists when adding new rules to a subscription. It keeps the diffs to a minimum, makes it easier to detect duplicate rules, and prevents searching the whole list by eye for a particular rule. Contributors can just add new items, sort the list and commit. |
So you are not in favour of "building" the subscriptions file? Note that it could be possible to have both alphabetically sorted and thematically grouped subscriptions concurrently. So in other words, I suggest to find a method to manage rules alphabetically and grouped at the same time. (Personally I prefer grouped rules) |
After doing some work on the subscriptions, I think you're right. It's easier to read the subscription if rules are grouped in logical/browsing order.
Yes.
Yes we should add those fields. Can you report an issue for this (as you have a better picture in mind than I do)? Then this one can be closed. |
I've created issue RequestPolicyContinued/requestpolicy#550 |
I'd like to organize the lists with comments.
I tried to add comment to a json file (see here) before I figured out that comments are not allowed or rather specified for json files. To organize the subscriptions it would be good to be able to add comments. A solution would be to have a file with comments and an automatic tool would remove the comments / convert to json.
The text was updated successfully, but these errors were encountered: