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

add notes path to capabilities #1468

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tobiasKaminsky
Copy link
Member

No description provided.

@tobiasKaminsky
Copy link
Member Author

@juliusknorr thanks! Tested & works!

@enjeck
Copy link
Contributor

enjeck commented Feb 1, 2025

@tobiasKaminsky Some CI tests are failing

@tobiasKaminsky tobiasKaminsky force-pushed the notesFolderToCapability branch 2 times, most recently from 8113c57 to e095095 Compare February 4, 2025 09:30
@tobiasKaminsky
Copy link
Member Author

@juliusknorr or @enjeck can you help me with psalm?

ERROR: RiskyTruthyFalsyComparison
at /home/tobi/github/nextcloud/notes/lib/AppInfo/Capabilities.php:29:21
Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
                                'notes_path' => $this->userId ? $this->noteUtil->getNotesFolderUserPath($this->userId) : null,

Not sure what to do.

@enjeck
Copy link
Contributor

enjeck commented Feb 4, 2025

I haven't looked deeply yet, but my first thought is that maybe the warning is about $this->userId which could be null or the empty string, and both cases are falsy. So maybe changing to $this->userId !== null && $this->userId !== " "? $this->noteUtil->getNotesFolderUserPath($this->userId) : null

@enjeck
Copy link
Contributor

enjeck commented Feb 4, 2025

There seem to be other unrelated CI failures like the test-api (min). I can look into that

@tobiasKaminsky tobiasKaminsky force-pushed the notesFolderToCapability branch from e095095 to 691e455 Compare February 5, 2025 06:56
@tobiasKaminsky
Copy link
Member Author

@juliusknorr I am sorry, but I give up on this.
I am not familar with it, and having two lines of code changes, killing the entire CI… 🤷

Signed-off-by: Cleopatra Enjeck M. <[email protected]>
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.

3 participants