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

Extract function that generates upgrade link for extensions #19070

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Nov 29, 2020

Overview

Extract function that generates extension upgrade link. It was being generated in two places - for env check and for extensions dir.
On the extensions directory it is not very "UI friendly" to display the "upgrade available" on extensions that are not installed and a follow up PR will allow us to show a different message in this case. Also, I'd like to introduce a mgmt tag to disable the upgrade option which can be applied when using custom versions of an extension (ie. patched versions).

Before

Upgrade links generated in multiple places (environment check + extension dir template).

image

image

image

After

Upgrade link generated in one place.

There is a small change in this PR - we are no longer showing the extension key in brackets after the extension name - that follows on from the change we made in #18981.

image

image

image

Technical Details

Comments

@civibot
Copy link

civibot bot commented Nov 29, 2020

(Standard links)

@civibot civibot bot added the master label Nov 29, 2020
@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Nov 30, 2020

@mattwire I'm going to take a look at this and review it on it's merits & presumably merge it.

However, I note you are doing a bunch of work on the extensions UI - we have previously discussed bringing the extensions ui extension that exists into core as a core-extension and leaping to that and deprecating the existing UI and likely will do this as some point- so it might be better to look at that to ensure your work doens't wind up deprecated?

@eileenmcnaughton
Copy link
Contributor

@seamuslee001
Copy link
Contributor

@eileenmcnaughton
Copy link
Contributor

@seamuslee001 I was many seconds ahead of you :-)

@eileenmcnaughton
Copy link
Contributor

I gave the code a quick skim and it seemed sensible so I gave it an r-run & it worked - merging

@eileenmcnaughton eileenmcnaughton merged commit 5c60b00 into civicrm:master Nov 30, 2020
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.

3 participants