Skip to content

Conversation

@hweihwang
Copy link

@hweihwang hweihwang commented May 7, 2024

📝 Summary

🏁 Checklist

  • Remove duplicated query when calling /save endpoint
  • Refactor the code (Remove duplicate code, duplicated call to function, more solid)

@hweihwang hweihwang requested a review from juliusknorr May 7, 2024 13:17
@hweihwang hweihwang self-assigned this May 7, 2024
@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!

Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

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

First of all... I am sorry for taking so long to review this @hweihwang . I needed some quite time that really allowed me to focus on it.

I appreciate your contribution 🎉 .

Comment on lines +59 to +60
$documentId = $this->getDocumentId();
$this->document = $this->documentService->getDocument($documentId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This always runs - even if non of the Require... attributes were set.

Before we'd only get the document if any of the attributes was there.
Is this intentional?

I don't think it matters in practice as I assume all ISessionAwareControllers require at least one of them. Just want to point out a change in behavior that i am seeing here.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dirty table reads to check

4 participants