-
Notifications
You must be signed in to change notification settings - Fork 464
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
[DISCUSSION] Automatically remove duplicates via icontool.py #1269
Comments
Just so you know, there's a tool called They could probably be merged in a new PR, although I currently don't have the time to do this. |
@SuperDragonXD The number of duplicates is growing again because many people are manually adding components. Is there any reason why we can't do automatic duplicate removal? The same way automatic sorting happens. Maybe this should be done automatically before creating a release build. I'm not sure which moment is the best, but clearly that can be given to the computer. |
damn you keep editing your comment it's not possible for GH Actions to push anymore because they enabled push protection, so it can't be fully automatic |
@KTibow You can already delete duplicates manually with a single command. I think it is logical to automate it. One option is the same as with automatic sorting. You run any command, and icontool.py cleans duplicates along with it. |
well - it's not possible to automate it with github actions (because push protection - unless you do some sort of workaround) |
@KTibow Ok, I understand about GitHub Actions. I'm talking about using icontool.py. |
okay - so what do you mean by automatically then? do you mean that "icontool should be ran to clean up the app filter/icons before the next release"? |
When I run a command like this, icontool.py not only adds the component, but also sorts the entire list. I think it would be possible to remove duplicates at the same time. For example, before sorting. In this case, manual cleanup of duplicates before release may not be necessary. |
so you think it should run maintenance every time an icon is added? |
also its kinda ironic youre saying this given you introduced duplicates in #1358 (but also kinda makes sense) |
@KTibow On the one hand I was using only icontool.py, and on the other hand I was fixing conflicts and making merges with what the previously accepted PRs gave. In all this fuss, duplicates could appear. |
About this discussion
Duplicates.mp4
Many components in the appfilter.xml have duplicates, so I suggest finding a way to automatically remove them.
I think icontool.py now checks for alphabetical sorting at runtime and fixes it. This will work with duplicates as well. If the lines are identical, leave one. If the components are identical but have different names or svg, somehow inform about it (not sure if the current check in icontool.py works that way).
It will be cleaner.
The text was updated successfully, but these errors were encountered: