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

Allow for update of connector status #74

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

dianadoherty
Copy link
Contributor

@dianadoherty dianadoherty commented Mar 3, 2021

Description of change

As part of work to pause/resume/restart connectors, we want to be able to call the new API endpoint for updating the connector status

https://github.com/meroxa/platform-api/blob/fe4b68fcfaac0fa125f67fb6803ae4f182b075ba/cmd/api/router/router.go#L29

Fixes https://meroxa.atlassian.net/browse/PLATFORM-43
Depends on: https://github.com/meroxa/meroxa-go/pull/15

Screen Shot 2021-03-04 at 3 58 30 PM

Type of change

  • New feature
  • Bug fix
  • Refactor
  • Documentation

How was this tested?

  • Unit Tests
  • Deployed to staging
  • Local testing

Additional references

Any additional links (if appropriate)

Documentation updated

Make sure that our documentation is accordingly updated when necessary.

Provide link:

@dianadoherty dianadoherty self-assigned this Mar 3, 2021
@dianadoherty dianadoherty force-pushed the update-connector-status branch 2 times, most recently from 22214c4 to 81d1f57 Compare March 4, 2021 21:02
@dianadoherty dianadoherty marked this pull request as ready for review March 4, 2021 21:04
@dianadoherty dianadoherty requested review from a team, terrancej, ahmeroxa and raulb and removed request for a team March 4, 2021 21:21
defer cancel()

// update connector status with name
con, err := c.UpdateConnectorStatus(ctx, conName, state)
Copy link
Member

Choose a reason for hiding this comment

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

In other actions we've been providing feedback to the user when these are being initiated (i.e.: "Creating connector..."). Here's an example: https://github.com/meroxa/cli/pull/63/files#diff-711a4354cb9e88f469f82742ba63b8b9abc7a40b99dd9c090f78cda73377774aR79-R81.

What do you think @dianadoherty ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, updated it!

Copy link
Member

@raulb raulb left a comment

Choose a reason for hiding this comment

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

Looks great aside a comment regarding (maybe) providing some feedback to the user when an action is being performed. I'm aware we're being inconsistent on this, but I think we should follow the same pattern everywhere.

Either way, once it's rebased this should be good to go.

@dianadoherty dianadoherty merged commit 1fdd1e7 into master Mar 5, 2021
@dianadoherty dianadoherty deleted the update-connector-status branch March 5, 2021 15:00
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.

2 participants