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

NOISSUE- Implement Domains #9

Merged
merged 1 commit into from
Dec 1, 2023
Merged

NOISSUE- Implement Domains #9

merged 1 commit into from
Dec 1, 2023

Conversation

ianmuchyri
Copy link
Contributor

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Dependency Update

What does this do?

Implement domains into the UI to sync with Magistrala's implementation of domains.

Adds:

  • Organizations page
  • Profile page to manage a user's profile and organizations
  • Organization page to allow the user to edit an organization.

Which issue(s) does this PR fix/relate to?

None

  • Related Issue #
  • Resolves #

Have you included tests for your changes?

  • Yes
  • No, and this is why:

Did you document any new/modified functionality?

  • Yes
  • No, and this is why:

Notes

@ianmuchyri ianmuchyri changed the title DRAFT - NOISSUE- Implement Domains NOISSUE- Implement Domains Nov 24, 2023
@ianmuchyri
Copy link
Contributor Author

@ianmuchyri ianmuchyri force-pushed the implementdomains branch 3 times, most recently from ca929c8 to 8521063 Compare November 30, 2023 12:06
cmd/ui/main.go Outdated Show resolved Hide resolved
ui/api/endpoint.go Show resolved Hide resolved
ui/api/endpoint.go Show resolved Hide resolved
Copy link
Member

@rodneyosodo rodneyosodo left a comment

Choose a reason for hiding this comment

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

How do we plan to solve this?

For a new user if the login to magistrala UI they aren't able to view any entity. It should return a black page rather than a failed to retrieve entity

image
This happens for things and channels

image

cmd/ui/main.go Outdated Show resolved Hide resolved
ui/api/logging.go Show resolved Hide resolved
@ianmuchyri
Copy link
Contributor Author

How do we plan to solve this?

For a new user if the login to magistrala UI they aren't able to view any entity. It should return a black page rather than a failed to retrieve entity

image This happens for things and channels

image

I think it's beacuse you are using the wrong branch, hence you have a token which does not have the domain in it

Copy link
Contributor

@dborovcanin dborovcanin left a comment

Choose a reason for hiding this comment

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

I am not able to reproduce @rodneyosodo's errors, nor problems with users seeing things from other domains. When adding Things, Groups, or Users - I'd expect to see them appear in the list once I successfully submit the request.

Copy link
Member

@rodneyosodo rodneyosodo left a comment

Choose a reason for hiding this comment

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

Minor naming changes on buttons

For example, in this page we are on things page things is repeated. One suggestion would be
image

</tr>
</thead>
<tbody>
{{ range $i, $m := .Members }}
Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be solved in another pr, once we are enable to fetch domain members with relations

Signed-off-by: ianmuchyri <[email protected]>
Copy link
Member

@rodneyosodo rodneyosodo left a comment

Choose a reason for hiding this comment

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

LGTM

@dborovcanin dborovcanin merged commit 66f1b18 into main Dec 1, 2023
2 checks passed
@dborovcanin dborovcanin deleted the implementdomains branch December 1, 2023 12:56
Musilah pushed a commit that referenced this pull request Dec 17, 2023
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