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/cloud-native#16 Migrate Contribution Page widget extern url to us… #17969

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

seamuslee001
Copy link
Contributor

…e the normal CMS routing mechanism

Overview

This migrates the Contribution Page Widget js end to use an endpoint within the normal routing system

Before

extern file used

After

Non extern route used

ping @eileenmcnaughton @totten @kcristiano

@civibot
Copy link

civibot bot commented Jul 27, 2020

(Standard links)

@civibot civibot bot added the master label Jul 27, 2020
@totten
Copy link
Member

totten commented Jul 31, 2020

I haven't tested, but the broad contours look good. 👍

@seamuslee001
Copy link
Contributor Author

@eileenmcnaughton @totten I have expanded the test coverage here to cover both endpoints which shows we are getting a consitatnt return from both endpoints, Is there anything else needed to prove that this works?

@eileenmcnaughton
Copy link
Contributor

I was kinda hoping @kcristiano would test it...

@kcristiano
Copy link
Member

did an r-run.

Without the PR:

image

script:

<script type="text/javascript" src="http://wpcvmaster.test/wp-content/plugins/civicrm/civicrm/extern/widget.php?cpageId=1&widgetId=1&format=3"></script>

With the PR:

Script:

<script type="text/javascript" src="http://wpcvmaster.test/civicrm/contribute/widget/?cpageId=1&widgetId=1&format=3"></script>

Widget looks off:

image

@seamuslee001
Copy link
Contributor Author

seamuslee001 commented Aug 17, 2020 via email

@kcristiano
Copy link
Member

I did, and cleared caches.

@seamuslee001
Copy link
Contributor Author

@kcristiano I rebased this and re-tested and after clearing menu cache my url was http://wp-demo/civicrm/contribute/widget/?cpageId=1&widgetId=1&format=3 and the widget looked like the attached in the preview
widget_preview

Are you able to re-test?

@seamuslee001 seamuslee001 force-pushed the widget_normal_route branch 2 times, most recently from 53bb825 to a38da21 Compare September 30, 2020 23:03
@kcristiano
Copy link
Member

@seamuslee001 I'll do this, it may take a few days, but I'll give you feedback.

@kcristiano
Copy link
Member

kcristiano commented Oct 9, 2020

@seamuslee001 sorry for the delay but I cannot get the patch to apply on d7 master or wp master. Can you rebase?

…e the normal CMS routing mechanism

Update test to test both endpoints
@seamuslee001
Copy link
Contributor Author

@kcristiano rebased now for you mate

@kcristiano
Copy link
Member

@seamuslee001 I did a new r-run Preview is good and on remote site:

image

Contribution works directing me to real form.

Tested on:

WP 5.5.1
CiviCRM master
php 7.3

Looks good to merge.

@eileenmcnaughton
Copy link
Contributor

boom

@eileenmcnaughton eileenmcnaughton merged commit fcc2788 into civicrm:master Oct 10, 2020
@seamuslee001 seamuslee001 deleted the widget_normal_route branch October 10, 2020 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants