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

Event Location fixes #23041

Merged
merged 2 commits into from
Apr 4, 2022
Merged

Conversation

christianwach
Copy link
Member

Overview

The PR goes part way to addressing the issues raised in this Lab ticket.

Before

The issues are succinctly summarised in the OP and in this comment:

After

  • LocBlocks are not duplicated
  • Address, Email and Phone records are not duplicated
  • The "This location is used by..." warning shows correct values
  • The "This location is used by..." warning is pluralised

Comments

I have not tested the results of this PR in all possible scenarios but offer it as an improvement on the status quo and a basis for further refinement. I have liberally commented the code in case the changes affect other workflows, e.g. #18586, #18488, #13534 and others I've probably missed.

Not addressed

  • "It is not easy to see what other events use that location."
  • "Consider whether [the displayed count] is all events, or just active and/or future events"
  • "Maybe include a link to search for events using that location"

There is also the question of what happens when, say, an Email field is cleared... is the intent to delete the Email record, or should the record remain as is currently the case?

@civibot
Copy link

civibot bot commented Mar 26, 2022

(Standard links)

@civibot civibot bot added the master label Mar 26, 2022
@jaapjansma
Copy link
Contributor

test this please

@jaapjansma
Copy link
Contributor

  • General standards
    • Explain (r-explain)
      • PASS : The goal/problem/solution have been adequately explained in the PR and on Gitlab.
    • User impact (r-user)
      • PASS: The change would be intuitive or unnoticeable for a majority of users who work with this feature.
    • Documentation (r-doc)
      • PASS: The changes do not require documentation.
    • Run it (r-run)
      • PASS: We created three events all using the same location and we changed the location at one of them and we checked whether it changed at the others. We also checked the notice text about whether the location was in use or not and that looked good to us.
  • Developer standards
    • Technical impact (r-tech)
      • PASS: The change preserves compatibility with existing callers/code/downstream.
    • Code quality (r-code)
      • PASS: The functionality, purpose, and style of the code seems clear+sensible.
    • Maintainability (r-maint)
      • PASS: The change is trivial enough that it does not require tests.
    • Test results (r-test)
      • PASS: The test results are all-clear.

@colemanw or @eileenmcnaughton can one of you merge this PR!

@jaapjansma jaapjansma added the merge ready PR will be merged after a few days if there are no objections label Apr 4, 2022
@eileenmcnaughton
Copy link
Contributor

Thanks @jaapjansma @christianwach

@eileenmcnaughton
Copy link
Contributor

& Betty too!

@eileenmcnaughton eileenmcnaughton merged commit 5cd2310 into civicrm:master Apr 4, 2022
@christianwach christianwach deleted the lab-core-2103 branch April 4, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants