Skip to content
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

Contest "copy exchange to" #3027

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Contest "copy exchange to" #3027

merged 1 commit into from
Apr 2, 2024

Conversation

DJ3CE
Copy link
Contributor

@DJ3CE DJ3CE commented Mar 25, 2024

In contest-logging, Cloudlog featured copying the received exchange into the (rather specific) DARC DOK field.

This PR brings this valuable approach to a broader set of contests by implementing 'copy exchange to'

  • age,
  • name,
  • US-State,
  • power used by the other station ('RX_PWR'),
  • locator

which could easily be enhanced for other needs (I just included those, I know about).

Some notes:

  • 'locator' might be confusing. This copies the exchange field to locator, not the received-locator-exchange field and is rather useful for some edge cases, I guess. I'm thinking of disabling that, if an exchange type including a locator was selected
  • in models/Logbook_model.php, an example for a more sophisticated copy is included
  • some fields never appear in Cloudlog, like 'age'. But why not fill it - it's in the database. :)

As always, although not mentioning it everytime :), I'm open to discussions, wishes, enhancements, ...

@DJ3CE DJ3CE changed the base branch from master to dev March 25, 2024 11:47
@DJ3CE
Copy link
Contributor Author

DJ3CE commented Mar 25, 2024

Ohkay, so I could contribute code to disable/enable the "copy to"-select, depending on the exchange type, which leads to conflicts with other PR's I handed in. So I guess I'll wait until the PR's are merged :). Please let me know, if you prefer another approach.

- in contest-session, the (numeric-)id of the selected 'copy' is saved,
  compatible with the previous DOK-copy.
- UI changes
- Logbook_model enhancements
- Translation additions
@DJ3CE DJ3CE force-pushed the contest_copy_to branch from e823d3b to 3d22e3c Compare March 27, 2024 10:37
@magicbug
Copy link
Owner

magicbug commented Apr 2, 2024

Implementation looks good, happy for this to be merged 👍🏻

@magicbug magicbug merged commit 3a8f424 into magicbug:dev Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants