Skip to content

Conversation

@marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Apr 29, 2024

Summary

TODO

  • Clean up old tasks
  • Clean up old app data files
  • Add integration tests
  • Check if user has access to files
  • OCS API

Checklist

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Psalm found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Yay, it looks gooood. Didn't make a full review yet, just using it for the work on the assistant.
It breaks NC though. I tried to rebase on master, no luck.

PHP Fatal error:  Class OC\\Files\\Node\\LazyR
oot contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCP\\Files\\IRootFolder::getAppDataDirectoryName) in /var/www/html/dev
/server/lib/private/Files/Node/LazyRoot.php on line 39

@marcelklehr marcelklehr added 2. developing Work in progress pending documentation This pull request needs an associated documentation update labels May 3, 2024
@marcelklehr marcelklehr force-pushed the enh/taskprocessing-api branch from a1f6f92 to b9948ba Compare May 3, 2024 12:17
Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

A bump of the server version is needed to trigger the migration step.

@marcelklehr
Copy link
Member Author

A bump of the server version is needed to trigger the migration step.

Like this?

version.php

-$OC_Version = [30, 0, 0, 0];
+$OC_Version = [30, 0, 0, 1];

@marcelklehr marcelklehr force-pushed the enh/taskprocessing-api branch from dadb8b2 to 27735d1 Compare May 6, 2024 08:38
@marcelklehr marcelklehr marked this pull request as ready for review May 6, 2024 09:10
@marcelklehr marcelklehr requested a review from provokateurin as a code owner May 6, 2024 09:10
@marcelklehr marcelklehr requested a review from come-nc May 6, 2024 09:11
@marcelklehr marcelklehr requested review from come-nc and julien-nc May 7, 2024 13:40
Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Another partial review:

@marcelklehr
Copy link
Member Author

  • The assistant needs a manager method AND/OR an endpoint to get all user's tasks fixed ✔️
  • [minor] CSRF might not be needed for taskprocessing/tasks/{taskId}/file/{fileId} fixed ✔️
  • Task result files stored in data/appdata_iid/core/TaskProcessing/ are empty for the TextToImage task type. fixed ✔️

marcelklehr and others added 21 commits May 14, 2024 11:38
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Co-authored-by: julien-nc <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Co-authored-by: julien-nc <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Wasn't able to load File from app data

Signed-off-by: Marcel Klehr <[email protected]>
Co-authored-by: Kate <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
@marcelklehr marcelklehr force-pushed the enh/taskprocessing-api branch from e1a7a49 to cac812d Compare May 14, 2024 09:38
@marcelklehr marcelklehr merged commit f3e72af into master May 15, 2024
@marcelklehr marcelklehr deleted the enh/taskprocessing-api branch May 15, 2024 09:43
* @return string
* @since 30.0.0
*/
public function getAppDataDirectoryName(): string;
Copy link
Member

Choose a reason for hiding this comment

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

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

Labels

2. developing Work in progress pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants