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

add Git Updater integration #78

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

afragen
Copy link
Contributor

@afragen afragen commented Oct 30, 2024

Pull Request

What changed?

Added appropriate headers for Git Updater integration.

Fixes #77

CERTIFICATION

By opening this pull request, I do agree to abide by
the CODE OF CONDUCT and be bound by the terms
of the Contribution Guidelines in effect on the date and time
of my contribution as proven by the
revision information in GitHub. I also agree that any previous contributions shall be deemed subject to the terms of the
version in effect on the date and time of this pull request, or any future revisions for pull requests I may submit.
Further, I certify that this work is my own, is original, does not violate the intellectual property of any other person
or entity, and I am not violating any license agreements or contracts I have with any person or entity. Finally, I agree
that this code may be licensed under any license deemed appropraite by AspirePress, including but not
limited to open source, closed source, proprietary or custom licenses, and that such license terms neither violate my
rights or my copyright to this code.

@asirota
Copy link
Member

asirota commented Oct 31, 2024

@sarah-savage please have a look.

@asirota asirota added this to the Phase 1 milestone Oct 31, 2024
@asirota asirota added the documentation Improvements or additions to documentation label Oct 31, 2024
Copy link
Member

asirota commented Oct 31, 2024

Can I get an explanation on why the plugin requires this header?

@asirota asirota self-requested a review October 31, 2024 11:51
@namithj
Copy link
Contributor

namithj commented Oct 31, 2024

It's for git updater integration. To pull updates directly from popular Git platforms for those who use the git updater plugin.

@asirota
Copy link
Member

asirota commented Oct 31, 2024

Ok but why does our plugin need this? Is to add support for updating from git as a repo?

Copy link
Member

@asirota asirota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is issue #77

@afragen
Copy link
Contributor Author

afragen commented Oct 31, 2024

Also there is no issue on this for discussion. @afragen please add an issue first before we do a PR. That's our usual workflow.

The issue is #77

@ipajen
Copy link
Collaborator

ipajen commented Oct 31, 2024

@asirota is for QA. See ticket
#77

the new headers is so Git updater knows where to download the code on GitHub. It saves time for testing as get the latest code and easy to change branch if needed. Been using it for years when testing other plugins.

@ipajen ipajen requested a review from asirota October 31, 2024 21:35
@asirota
Copy link
Member

asirota commented Oct 31, 2024

Please inform me how this helps QA. Tell me like I'm 5.

@ipajen
Copy link
Collaborator

ipajen commented Oct 31, 2024

Please inform me how this helps QA. Tell me like I'm 5.

It saves time. QA can get latest AP code from GitHub.with one click on any Wordpress test installation when using the git updater plugin instead of manually doing it. By adding the headers in AP the git updater will know where to find the AP GitHub code.The headers does not affect AP at all.

@asirota
Copy link
Member

asirota commented Oct 31, 2024

Gotcha. Seems innocuous. It's basically a testing tool. Is this something we want to have in our code for production branches or just test branches ?

@ipajen
Copy link
Collaborator

ipajen commented Oct 31, 2024

Gotcha. Seems innocuous. It's basically a testing tool. Is this something we want to have in our code for production branches or just test branches ?

I say production. It’s totally harmless as there is no dependencies to any code. It will be of benefit for other people who want to test the AP code. You should try it out when ever you have a chance as it’s a great tool.

@afragen
Copy link
Contributor Author

afragen commented Oct 31, 2024

It should be in all branches. This will allow the user to switch between the branches for testing, etc.

@afragen
Copy link
Contributor Author

afragen commented Oct 31, 2024

@asirota how will the plugin currently get updates? Git Updater integration can provide that.

@asirota
Copy link
Member

asirota commented Nov 1, 2024

AspireUpdate is designed to ge updates from AspireCloud. And from other repo projects that eventually will federate with AspireCloud. Does GitHub Updater federate with AspireCloud?

@asirota asirota closed this Nov 1, 2024
@afragen
Copy link
Contributor Author

afragen commented Nov 1, 2024

The default action for Git Updater is to update the primary branch from dot org, or in this case, AspireCloud, which replaces dot org.

This allows for any development branches of the plugin to update directly from the git host.

@asirota asirota reopened this Nov 1, 2024
Copy link
Member

@asirota asirota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now this PR is open for comments.

@asirota asirota assigned asirota and unassigned sarah-savage Nov 1, 2024
@ipajen
Copy link
Collaborator

ipajen commented Nov 1, 2024

@costdev Do you have any feedback on this PR? 🙏

@costdev
Copy link
Contributor

costdev commented Nov 1, 2024

Thanks for the ping @ipajen!

Certainly one of the major issues that software projects face is getting enough testers. This would enable those with GitUpdater to easily switch branch to the bleeding edge of the plugin and should help increase the number of bug reports/enhancement requests as use cases arise.

@asirota asirota removed the request for review from sarah-savage November 7, 2024 19:16
@asirota asirota merged commit 2d07067 into aspirepress:main Nov 7, 2024
3 checks passed
@afragen afragen deleted the git-updater-integration branch November 7, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Git-updater for testing
6 participants