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

Feat refactor tasks only using platform library #4665

Merged
merged 65 commits into from
Nov 14, 2022

Conversation

lohanidamodar
Copy link
Member

What does this PR do?

Refactors tasks in Appwrite using the new Platform library

Test Plan

Existing tests

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

YES

lohanidamodar and others added 30 commits July 8, 2022 02:27
@lohanidamodar lohanidamodar changed the base branch from master to feat-db-pools November 13, 2022 08:29
Copy link
Member

@eldadfux eldadfux left a comment

Choose a reason for hiding this comment

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

I think we should change the hierarchy of files to better support future services and platforms. Right now it seems to focused on the CLI and also create some confusion between CLI and Tasks

src/Appwrite/CLI/Tasks.php Outdated Show resolved Hide resolved
src/Appwrite/CLI/Tasks/Specs.php Outdated Show resolved Hide resolved
src/Appwrite/CLI/Tasks/Usage.php Outdated Show resolved Hide resolved
{
$this->type = self::TYPE_CLI;
$this
->addAction(Version::getName(), new Version())
Copy link
Member

Choose a reason for hiding this comment

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

Rethinking about this. Do we still need the name if it's part of the interface? Can't we just take it inside the constructor?

Copy link
Member

Choose a reason for hiding this comment

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

If we do that. I think we can change getName to not be a static class.

Copy link
Member Author

Choose a reason for hiding this comment

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

what do we do? move getName as instance function? that will have to be done in the Action and we need the name in order to reference the action, later to remove action?
Not sure I fully understand this

Copy link
Member

Choose a reason for hiding this comment

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

We need to get them for overwriting them, right?
We could still overwrite them by creating an action with the same name. Do you think it will work?

src/Appwrite/CLI/TasksService.php Outdated Show resolved Hide resolved
@christyjacob4 christyjacob4 merged commit 3ef9a33 into feat-db-pools Nov 14, 2022
@stnguyen90 stnguyen90 deleted the feat-refactor-tasks-only branch February 14, 2023 00:36
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.

None yet

3 participants