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

Refactor complex operations to backend service actions #1570

Open
cartermak opened this issue Sep 25, 2024 · 1 comment
Open

Refactor complex operations to backend service actions #1570

cartermak opened this issue Sep 25, 2024 · 1 comment
Labels
feature A new feature or feature request

Comments

@cartermak
Copy link
Member

cartermak commented Sep 25, 2024

Checked for duplicates

No - I haven't checked

Alternatives considered

Yes - and alternatives don't suffice

Related problems

Some common operations are currently implemented with complex front-end logic that makes it difficult to reproduce the capability via the Aerie API. (Deleting an activity is the one that spawned the thought.)

Describe the feature request

It would be nice if complex logic like this were more frequently implemented as Hasura actions that interact with a back-end service so that client applications don't need to duplicate logic implemented in the UI. I think the solution for plan upload was a great demonstration of this pattern (although, from the standpoint of separating concerns, I expect the merlin server would be a better final destination for this logic instead of the Aerie Gateway.)

@cartermak cartermak added the feature A new feature or feature request label Sep 25, 2024
@github-project-automation github-project-automation bot moved this to Todo in Aerie Sep 25, 2024
@cartermak
Copy link
Member Author

Lazily adding more thoughts here on coupling between the UI and backend, another pain point is the user role. As I understand, there is a lot of coupled logic between Hasura and the UI in order to indicate to the user which operations are available with a given role, but having this logic only available in the UI makes it very difficult to decode permission vs. query errors when going through Hasura.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or feature request
Projects
Status: Todo
Development

No branches or pull requests

1 participant