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

Change status of application via dashboard #1639

Closed
EPajares opened this issue Oct 23, 2022 · 2 comments
Closed

Change status of application via dashboard #1639

EPajares opened this issue Oct 23, 2022 · 2 comments
Assignees
Milestone

Comments

@EPajares
Copy link
Collaborator

EPajares commented Oct 23, 2022

Goal of this issue

We do have a table that manages the status of the application.

image

And we have an endpoint that checks whether the service is available:
image

But we don't have an endpoint that changes the status. So we would need a post request that sends/receives the following:

{ 
 "status": "maintenance"
}

or

{ 
 "status": "running"
}

Using a Fake API we could implement this in the dashboard. Maybe we can have a checkbox for this somewhere on the left side:

image

Ideally, when changing the checkbox, we send a message that forces the user to confirm it. Similar to what we do for the user deleting.

Resources

Check client implementation using a Fake-API. Later the backend implementation will follow.

Deliverables

Branch to derive

Dev

@EPajares EPajares added this to the v1.3 milestone Oct 23, 2022
@cinaaaa
Copy link
Contributor

cinaaaa commented Nov 1, 2022

Screenshot 2022-11-01 at 11 17 28
Screenshot 2022-11-01 at 11 19 22
Screenshot 2022-11-01 at 11 28 44

GET /api/status -> "running" or "maintenance"
PUT /api/status -> {status: "running" or "maintenance"}

@EPajares
Copy link
Collaborator Author

EPajares commented Nov 1, 2022

Thank you! @metemaddar could you implement the PUT endpoint in the API? Important is that the PUT endpoint is for superusers only.

image

@EPajares EPajares closed this as completed Nov 1, 2022
@EPajares EPajares reopened this Nov 1, 2022
@EPajares EPajares modified the milestones: v1.3, v1.4 Nov 2, 2022
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

No branches or pull requests

2 participants