Hash the directory name of a package on install.#227
Merged
afragen merged 16 commits intofairpm:mainfrom Dec 17, 2025
Merged
Conversation
6c0bbec to
c8497ef
Compare
Contributor
|
We already do this on direct install, fair-plugin/inc/packages/namespace.php Lines 646 to 676 in a6b8be8 |
Member
Author
|
That covers the "Direct Install" tab, whereas this covers the "Upload ZIP" or |
Contributor
|
@costdev Where are we here? Is this ready for 1.1? |
In particular, this deals with the installation of a package without knowing its DID in advance. For example, when uploading the ZIP file of a plugin or theme. Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
2ec0043 to
ea638e1
Compare
Member
Author
|
@Ipstenu Just rebased the PR branch on |
Ipstenu
approved these changes
Oct 27, 2025
Contributor
|
I think https://github.com/afragen/fair-plugin/tree/rename-theme-on-download also solves issue with at least some code reuse. |
afragen
added a commit
to afragen/fair-plugin
that referenced
this pull request
Nov 17, 2025
Signed-off-by: Andy Fragen <andy@thefragens.com> Fixes fairpm#227
afragen
approved these changes
Dec 13, 2025
costdev
commented
Dec 13, 2025
costdev
commented
Dec 13, 2025
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Signed-off-by: Andy Fragen <andy@thefragens.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Signed-off-by: Andy Fragen <andy@thefragens.com>
afragen
reviewed
Dec 13, 2025
Co-authored-by: Andy Fragen <andy@thefragens.com> Signed-off-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
costdev
commented
Dec 13, 2025
Signed-off-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Contributor
|
costdev#8 to move from inc/updater to inc/packages |
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: Andy Fragen <andy@thefragens.com>
When the request fails or there's no slug, '-didhash' will be appended to the directory name in a best-available attempt at de-duplication. Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
This is already performed in get_package_metadata(). Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR ensures that the directory name of a FAIR package is renamed to
slug-didhashon installation.In particular, this deals with the installation of a package without knowing its DID in advance. For example, when uploading the ZIP file of a plugin or theme.
See #228