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: add domain settings for project dashboard #689

Merged
merged 9 commits into from
Feb 23, 2023

Conversation

4nalog
Copy link
Member

@4nalog 4nalog commented Feb 16, 2023

TL;DR

This PR adds support for showing project attributes and project domain attributes in the Project Dashboard for flyteconsole.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Currently, there is no way for users to directly tell project attributes, project domain attributes. This PR adds support for showing project attributes and project domain attributes in the Project Dashboard for flyteconsole.

Note: We currently merge the project attributes with the project domain attributes in a single view. In future and as per designs, we will indicate separately global and project level domain settings so that users can see what changed

Tracking Issue

https://github.com/flyteorg/flyteconsole/issues/382

Follow-up issue

https://github.com/flyteorg/flyteconsole/issues/382

@welcome
Copy link

welcome bot commented Feb 16, 2023

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@@ -166,7 +186,7 @@ export const ProjectDashboard: React.FC<ProjectDashboardProps> = ({
);
return projectDomainAtributes;
},
staleTime: Infinity,
enabled: !!projectAttributesQuery.data,
Copy link
Member Author

Choose a reason for hiding this comment

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

The behaviour when the project settings error out is not clear. So we fetch projectDomainAttributes only once we have the upper level query.

@@ -206,9 +230,7 @@ export const ProjectDashboard: React.FC<ProjectDashboardProps> = ({
</Typography>
<Typography variant="h5">{t('tasksTotal', numberOfTasks)}</Typography>
</div>
<WaitForQuery query={projectDomainAttributesQuery}>
Copy link
Member Author

@4nalog 4nalog Feb 16, 2023

Choose a reason for hiding this comment

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

Not sure what the best way to implement this is but ideal scenario we nest the for project attributes and project domain attributes.

I implemented this at a non-component level by disabling the projectDomainAttributes query until we have the data for project attributes

Copy link
Member Author

@4nalog 4nalog left a comment

Choose a reason for hiding this comment

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

added some explanatory comments

@4nalog 4nalog requested review from ursucarina and removed request for ursucarina February 16, 2023 20:20
@ursucarina ursucarina requested review from a team, ursucarina, eugenejahn and olga-union and removed request for a team February 16, 2023 21:51
jsonporter
jsonporter previously approved these changes Feb 21, 2023
@@ -1,6 +1,6 @@
{
"name": "@flyteorg/console",
"version": "0.0.8",
"version": "0.0.9",
Copy link
Contributor

Choose a reason for hiding this comment

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

🙌

Soham Parekh and others added 8 commits February 22, 2023 21:19
Signed-off-by: 4nalog <4nalog@protonmail.com>
Signed-off-by: 4nalog <4nalog@protonmail.com>
Signed-off-by: 4nalog <4nalog@protonmail.com>
Signed-off-by: 4nalog <4nalog@protonmail.com>
Signed-off-by: 4nalog <4nalog@protonmail.com>
Signed-off-by: 4nalog <4nalog@protonmail.com>
Signed-off-by: 4nalog <4nalog@protonmail.com>
Signed-off-by: 4nalog <4nalog@protonmail.com>
@4nalog 4nalog force-pushed the soham/domain-settings-section branch from b668295 to c2bf77a Compare February 22, 2023 15:49
@jsonporter jsonporter merged commit 797bcc2 into flyteorg:master Feb 23, 2023
@welcome
Copy link

welcome bot commented Feb 23, 2023

Congrats on merging your first pull request! 🎉

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