Skip to content

#66 export paths in json as posix#70

Merged
davisagli merged 5 commits into
mainfrom
fix_66
Aug 6, 2025
Merged

#66 export paths in json as posix#70
davisagli merged 5 commits into
mainfrom
fix_66

Conversation

@ewohnlich
Copy link
Copy Markdown
Contributor

As currently written, this package uses pathlib.Path to make operations platform independent. However, this poses a challenge when exporting from a Windows platform and then importing to a Posix platform. Posix platforms do not know how to read Windows paths and will end up trying to create None value Files, and a lot of other errors. This fix proposes to always output paths in the JSON data as Posix. We need to be careful to only do this when writing to the JSON data as we do still need platform specific Paths for a lot of operations - creating files, opening files, checking for existence of files/dirs, etc.

I'm cheating a bit in that I do not attempt to convert Posix paths to whatever platform we're importing on. The reason for this is that Windows already knows how to read Posix paths. Trying to convert it anyway would be tricky, because it's already working as is.

@mister-roboto
Copy link
Copy Markdown

wohnlice the email address in your commit does not match an email in your GitHub account. Thus it is impossible to determine whether you have signed the Plone Contributor Agreement, which is required to merge this pull request.

Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement

If you have sent in your Plone Contributor Agreement, and received and accepted an invitation to join the Plone GitHub organization, then you might need to either add the email address on your Agreement to your GitHub account or change the email address in your commits. If you need to do the latter, then you should squash the commits with your matching email and push them.

Add more emails to your GitHub account:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account

Change the email address in your commits:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address

@mister-roboto
Copy link
Copy Markdown

@ewohnlich thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@ewohnlich
Copy link
Copy Markdown
Contributor Author

@jenkins-plone-org please run jobs

@ewohnlich
Copy link
Copy Markdown
Contributor Author

I added my organization's email to my Github account now, so hopefully that is sufficient for the contributor agreement. wohnlice@imsweb.com and eric.wohnlich@gmail.com are both me, I think I signed with eric.wohnlich@gmail.com but my commits here are coming from wohnlice@imsweb.com.

@ewohnlich ewohnlich requested a review from ericof July 31, 2025 18:24
@ewohnlich
Copy link
Copy Markdown
Contributor Author

Is there anything I can do to associate my wohnlice@imsweb.com email (from my commits here) with my eric.wohnlich@gmail.com email (where I signed the agreement) or do I need to sign it again?

@wesleybl
Copy link
Copy Markdown
Member

@ewohnlich Wouldn't it be easier for you to close this PR and create another branch, committing with the correct email?

@ewohnlich
Copy link
Copy Markdown
Contributor Author

Not for the long term, I'll be using this one more. I performed this step already.
"If you have sent in your Plone Contributor Agreement, and received and accepted an invitation to join the Plone GitHub organization, then you might need to either add the email address on your Agreement to your GitHub account or change the email address in your commits."

Can I retrigger that check somehow? Doesn't seem to be automatic

@wesleybl wesleybl closed this Jul 31, 2025
@wesleybl wesleybl reopened this Jul 31, 2025
@mister-roboto
Copy link
Copy Markdown

wohnlice the email address in your commit does not match an email in your GitHub account. Thus it is impossible to determine whether you have signed the Plone Contributor Agreement, which is required to merge this pull request.

Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement

If you have sent in your Plone Contributor Agreement, and received and accepted an invitation to join the Plone GitHub organization, then you might need to either add the email address on your Agreement to your GitHub account or change the email address in your commits. If you need to do the latter, then you should squash the commits with your matching email and push them.

Add more emails to your GitHub account:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account

Change the email address in your commits:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address

@mister-roboto
Copy link
Copy Markdown

@ewohnlich thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@wesleybl
Copy link
Copy Markdown
Member

@ewohnlich I closed and reopened PR. This usually reruns the jobs. But it's still failing. Are you sure you did the necessary check?

Maybe @stevepiercy can help.

@ericof
Copy link
Copy Markdown
Member

ericof commented Jul 31, 2025

@jenkins-plone-org please run jobs

@stevepiercy
Copy link
Copy Markdown
Contributor

@ewohnlich @wesleybl the message from mister-roboto provides two methods, one of which requires someone to review an updated PCA, and the other can be done by the contributor.

#70 (comment)

@ewohnlich
Copy link
Copy Markdown
Contributor Author

@stevepiercy thanks, but I did do the first option mentioned there already.

image

@davisagli
Copy link
Copy Markdown
Member

@ewohnlich The commit email is stored as wohnliche@imsweb.com, not wohnlice@imsweb.com

I suggest fixing the email in your local git config and then do a git commit --amend to update the metadata for the existing commit, then force push.

@mister-roboto
Copy link
Copy Markdown

wohnlice the email address in your commit does not match an email in your GitHub account. Thus it is impossible to determine whether you have signed the Plone Contributor Agreement, which is required to merge this pull request.

Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement

If you have sent in your Plone Contributor Agreement, and received and accepted an invitation to join the Plone GitHub organization, then you might need to either add the email address on your Agreement to your GitHub account or change the email address in your commits. If you need to do the latter, then you should squash the commits with your matching email and push them.

Add more emails to your GitHub account:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account

Change the email address in your commits:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address

@ewohnlich
Copy link
Copy Markdown
Contributor Author

Thanks @davisagli I think this is fixed. I also added wohnliche@imsweb.com to my email settings (good catch, didn't realize it was using that alias)

@davisagli davisagli merged commit 05f230f into main Aug 6, 2025
9 of 13 checks passed
@davisagli davisagli deleted the fix_66 branch August 6, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants