Skip to content

Conversation

@AIlkiv
Copy link
Contributor

@AIlkiv AIlkiv commented Feb 24, 2025

  • Resolves: #

Summary

I'm working on a fix for the problem nextcloud/collectives#1602. In order not to do it through hooks, I decided to first rewrite the rollback hook to the event.

I also added backwards compatibility.

TODO

  • ...

Checklist

@susnux susnux requested review from artonge and come-nc February 24, 2025 08:23
@susnux susnux added 3. to review Waiting for reviews technical debt php Pull requests that update Php code ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Feb 24, 2025
@susnux susnux added this to the Nextcloud 32 milestone Feb 24, 2025
@AIlkiv

This comment was marked as resolved.

@AIlkiv AIlkiv requested a review from susnux February 24, 2025 09:15
come-nc

This comment was marked as resolved.

@AIlkiv AIlkiv force-pushed the refactor/version-rollback-to-event branch 2 times, most recently from c26b3bb to e935ddd Compare February 24, 2025 11:40
@AIlkiv AIlkiv requested a review from come-nc February 24, 2025 11:40
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

In general it is quite nice now!
I would really like if you add a test to VersionManagerTest that checks the event is emitted correctly

Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

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

Some places in server using that event:

Can you migrate them ?

@come-nc
Copy link
Contributor

come-nc commented Feb 24, 2025

You need to apply the codestyle by running composer run cs:fix
See https://github.com/nextcloud/server/actions/runs/13497173837/job/37715071611?pr=50990

@AIlkiv AIlkiv force-pushed the refactor/version-rollback-to-event branch from e935ddd to 9f35338 Compare February 24, 2025 20:42
@AIlkiv AIlkiv requested a review from susnux February 24, 2025 20:43
@AIlkiv
Copy link
Contributor Author

AIlkiv commented Feb 24, 2025

@artonge I can try. But it will be a separate PR since I need to allocate additional time to understand that code.

Some places in server using that event:

Can you migrate them ?

@susnux
Copy link
Contributor

susnux commented Feb 25, 2025

I can try. But it will be a separate PR since I need to allocate additional time to understand that code.

Would be nice, and a follow up is perfectly fine :)

@AIlkiv AIlkiv requested a review from artonge February 25, 2025 06:18
@AIlkiv
Copy link
Contributor Author

AIlkiv commented Feb 25, 2025

@come-nc I fixed the styles. Please run the tests again.

@come-nc
Copy link
Contributor

come-nc commented Feb 25, 2025

The autoloaders are not up to date
Please run: bash build/autoloaderchecker.sh
And commit the result

https://github.com/nextcloud/server/actions/runs/13507438734/job/37768873708?pr=50990

@AIlkiv AIlkiv force-pushed the refactor/version-rollback-to-event branch from 9f35338 to 9b3424f Compare February 25, 2025 14:04
@AIlkiv
Copy link
Contributor Author

AIlkiv commented Feb 25, 2025

The autoloaders are not up to date
Please run: bash build/autoloaderchecker.sh
And commit the result

https://github.com/nextcloud/server/actions/runs/13507438734/job/37768873708?pr=50990

@come-nc done

@AIlkiv
Copy link
Contributor Author

AIlkiv commented Feb 26, 2025

@come-nc It seems that the failed checks are not related to the current PR.

@susnux
Copy link
Contributor

susnux commented Feb 26, 2025

@sorbaugh cypress unrelated due to fork. Could you please merge?

@sorbaugh sorbaugh merged commit ef09980 into nextcloud:master Feb 27, 2025
177 of 180 checks passed
@github-actions
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!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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

Labels

3. to review Waiting for reviews feedback-requested php Pull requests that update Php code ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants