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

fix: avoid douple expireDate parsing #44838

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Conversation

Fenn-CS
Copy link
Contributor

@Fenn-CS Fenn-CS commented Apr 15, 2024

Resolves : #41229

@Fenn-CS Fenn-CS self-assigned this Apr 15, 2024
@Fenn-CS Fenn-CS force-pushed the 41229-expire-date-fed-share branch from 9241d0b to 7c0832e Compare April 15, 2024 20:11
@Fenn-CS Fenn-CS force-pushed the 41229-expire-date-fed-share branch from 7c0832e to 68753c9 Compare April 15, 2024 20:39
@Fenn-CS Fenn-CS requested review from artonge, come-nc and Altahrim and removed request for artonge and come-nc April 15, 2024 20:42
@Fenn-CS Fenn-CS marked this pull request as ready for review April 15, 2024 20:43
@Fenn-CS Fenn-CS added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Apr 15, 2024
@Fenn-CS Fenn-CS force-pushed the 41229-expire-date-fed-share branch from 68753c9 to 63d5f75 Compare April 15, 2024 21:23
@Fenn-CS Fenn-CS changed the title refactor(shareApiController): use contrusctor property promotion & DI… refactor(shareApiController): avoid douple expireDate parsing Apr 15, 2024
@Fenn-CS Fenn-CS force-pushed the 41229-expire-date-fed-share branch from 63d5f75 to 634df14 Compare April 15, 2024 21:39
@Fenn-CS Fenn-CS changed the title refactor(shareApiController): avoid douple expireDate parsing fix: avoid douple expireDate parsing Apr 15, 2024
@Fenn-CS Fenn-CS force-pushed the 41229-expire-date-fed-share branch 3 times, most recently from b5b79cc to ff88095 Compare April 16, 2024 17:15
@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Apr 17, 2024

Test failures related and looking.

@Fenn-CS Fenn-CS force-pushed the 41229-expire-date-fed-share branch 2 times, most recently from 56e56d8 to 1c28f7a Compare April 18, 2024 00:29
… logger

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
`expireDate` can be set once and used anywhere needed, the current implementation,
duplicates this behavior which leads to `parseDate` receiving an a date object it
parsed and returend earlier in the createShare method.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@Fenn-CS Fenn-CS force-pushed the 41229-expire-date-fed-share branch from 1c28f7a to ec8a0a6 Compare April 18, 2024 01:01
@Fenn-CS Fenn-CS merged commit 4cbe826 into master Apr 18, 2024
157 checks passed
@Fenn-CS Fenn-CS deleted the 41229-expire-date-fed-share branch April 18, 2024 01:26
@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Apr 18, 2024

/backport to stable29

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Apr 18, 2024

/backport to stable28

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Apr 18, 2024

/backport to stable27

@nickvergessen
Copy link
Member

Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Bug]: Federation Share with Expiration Date, ($expireDate) must be of type string, DateTime given
4 participants