-
Notifications
You must be signed in to change notification settings - Fork 136
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
Conversation
@juliusknorr thanks! Tested & works! |
@tobiasKaminsky Some CI tests are failing |
8113c57
to
e095095
Compare
@juliusknorr or @enjeck can you help me with psalm?
Not sure what to do. |
I haven't looked deeply yet, but my first thought is that maybe the warning is about |
There seem to be other unrelated CI failures like the |
e095095
to
691e455
Compare
@juliusknorr I am sorry, but I give up on this. |
03ceaef
to
777613d
Compare
Signed-off-by: Cleopatra Enjeck M. <[email protected]>
777613d
to
a2ebf0a
Compare
Signed-off-by: Cleopatra Enjeck M. <[email protected]>
Signed-off-by: Cleopatra Enjeck M. <[email protected]>
Signed-off-by: Cleopatra Enjeck M. <[email protected]>
@tobiasKaminsky At 3b41954, you moved |
Actually, when I test this out, I get an error on the homepage:
Probably shouldn't have merged yet??? |
I suspect that 3b41954 is essential and I shouldn't have removed it 🤦 |
I tried using |
public function getNotesFolderUserPath(string $userId): ?string { | ||
/** @psalm-suppress MissingDependency */ | ||
$userFolder = $this->getRoot()->getUserFolder($userId); | ||
$nodesFolder = $this->getOrCreateNotesFolder($userId, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably on users where the folder does not exists yet (e.g. new users on first login).
Possible solutions: either the create
parameter has to be true, or the NotesFolderException
has to be caught.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An integration test would have caught this btw.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even a frontend test would have caught this too, since this error crashes the entire server 🤦
No description provided.