-
Notifications
You must be signed in to change notification settings - Fork 45
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
Implement merging of codeplugs #426
Comments
The import dialog presents the option to import *.yaml, but the file picker dialog does not show any of the .yaml files in the directory. Should importing another QDMR codeplug (aka "codeplug merging") work already? |
Should be fixed now. |
Yes, selecting .yaml files works now! Note: the description below "Items" in the "Merge Codeplugs" window does change with the selected option, the one below "Sets" does not. I tried to import the following .yaml into an empty codeplug:
I expected that one contact to be added to the empty codeplug, but it does not seem to work? |
Which strategy did you select? The result would be correct, if you selected Ignore for items. |
|
Ok, I can reproduce it. Unfortunately, not in the unit tests. This is weird. |
Fixed it. Was a stupid typo. |
Works! Will try some more with different options and report. Thanks! Side note: since merged items get added to the end: how much work would implementing #259 be, for example "move by 10"? |
Does the merge itself work so far? If so, I would merge it into |
I only imported contacts so far - that worked as expected. Trying more complex merges of zones etc. is next todo. But general workflow functions as expected. |
This is needed to implement the import of CHIRP CSV files. The simple CHRIP format does not contain a proper codeplug for FM capable DMR radios. Consequently, the CHIRP FM channels must be imported into an existing codeplug. Hence, an import/merge function is needed anyway.
This, however, is highly non-trivial, as the elements of codeplugs are linked. So, I cannot simply copy channels, zones, etc from another codeplug. Also, how to handle duplicates? My suggestion would be: Allow the user to select a merge strategy for items (atomic element like channel, contact) and sets (groups/lists of elements like zones, group lists, ...). I.e.,
The text was updated successfully, but these errors were encountered: