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

Add an API to fetch the status of the migration #6378

Closed
Tracked by #6129
kalroy opened this issue Dec 15, 2021 · 0 comments
Closed
Tracked by #6129

Add an API to fetch the status of the migration #6378

kalroy opened this issue Dec 15, 2021 · 0 comments
Assignees
Labels
automate-infra-proxy forjira FY2022-SP-5 Team: Stalwart Migrate Chef Manage, UI bugs, UX improvements, CVE Issues

Comments

@kalroy
Copy link
Collaborator

kalroy commented Dec 15, 2021

User Story

As an Automate User, I should be able to fetch the status of the latest migration given a migration id

Acceptance Criteria

  • The API should return status In Progress or Completed
  • The API should always check for the latest migration

Implementation Details

  • Add an API accessible externally
  • Run a query on the migration table using server id, sort based on id and take the topmost row
  • Probable JSON response structure:
{
   "organisation_migration": <status>,
   "user_migration": <status>,   
}

Definition of Done

  • All things specified in User Story Acceptance Criteria should be fulfilled.
  • All Exceptions are Handled Properly
  • Ensure logs have no unnecessary data.
  • Test coverage for the new feature is done to at least 70%
  • If needed raise Docs PR and tag documentation.
  • Swagger Documentation updated
  • Smoke Test done.
  • Ensure Build and Integration Pipelines are Green.
  • PR has 2 approvers.
  • All Code Review Comments are Resolved.
  • README doc should be updated, if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automate-infra-proxy forjira FY2022-SP-5 Team: Stalwart Migrate Chef Manage, UI bugs, UX improvements, CVE Issues
Projects
None yet
Development

No branches or pull requests

2 participants