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

dev/core/issues/842, Fixed code to update website rather delete #13929

Closed
wants to merge 1 commit into from

Conversation

pradpnayak
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/core/issues/842

Before

Website gets deleted when updated

After

Website is updated

@civibot
Copy link

civibot bot commented Apr 1, 2019

(Standard links)

@civibot civibot bot added the master label Apr 1, 2019
@seamuslee001
Copy link
Contributor

@pradpnayak are you able to add a unit test to this and do you have any idea of when it broke?

@pradpnayak
Copy link
Contributor Author

@seamuslee001 this was reported in https://civicrm.stackexchange.com/questions/29114/inline-editing-of-website-field-deletes-it which can be replicated on >= 5.10

Not sure but it may be related to these commits #13169 and #13170

@eileenmcnaughton
Copy link
Contributor

@pradpnayak this has been a really fragile bit of functionality :-( Would be v grateful if you can add a test so we can hopefully break the cycle

@eileenmcnaughton
Copy link
Contributor

@elisseck are you able to review?

@pradpnayak
Copy link
Contributor Author

Hi @eileenmcnaughton

This issue is more of UI so do you want me to add unit test for UI submit or just for the CRM_Core_BAO_Website::process() function?

Thanks
Pradeep

@eileenmcnaughton
Copy link
Contributor

@pradpnayak I had assumed the latter - does that work out or is it kinda pointless?

@elisseck
Copy link
Contributor

elisseck commented Apr 1, 2019

@eileenmcnaughton Yes i'll be happy to review this since my recent PRs touched this functionality (although i'm not 100% sure how they would have caused this :) ). Should be able to get to it tonight.

@elisseck
Copy link
Contributor

elisseck commented Apr 2, 2019

Okay I tested this on a buildkit build of current 5.13.alpha1 and i'm seeing some really strange behavior that I don't understand. The behavior described in the issue is not consistent at all for me. Here is a little screencast you'll see a failure when I add the 4th website but you'll see a bunch of successes as well. This is mostly FYI for writing this test I think it's going to be confusing:

dev_core_842

However weird this is... checking out the PR does seem to resolve this issue after editing websites for a few minutes I saw no more issues... so my review is as follows:

  • General standards
  • Developer standards
    • (r-tech) PASS
    • (r-code) PASS
    • (r-maint) PASS
    • (r-test) Undecided: It would be great to see the test as discussed above although I can't say much there because i'm definitely guilty of not writing tests for my previous PRs (sorry!!).

@eileenmcnaughton
Copy link
Contributor

@elisseck caught out huh :-) But thanks for doing the review

@mieg
Copy link

mieg commented Apr 2, 2019

This fixes the issue for me, on 5.11.0 / Drupal 7.65. Thanks @pradpnayak!

@colemanw
Copy link
Member

colemanw commented Apr 2, 2019

I think this needs to be merged into 5.12.

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Apr 2, 2019

I've put this against 5.12 #13939

(perhaps we can still get that test against master :-)

@eileenmcnaughton
Copy link
Contributor

Closing as merged through via 5.12 - would be happy to see that test though :-)

@pradpnayak pradpnayak deleted the RegressionWebsite branch March 23, 2020 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants