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

fix(server): standardizing datastore resource names #2796

Merged
merged 6 commits into from
Jun 22, 2023

Conversation

danielbdias
Copy link
Contributor

@danielbdias danielbdias commented Jun 22, 2023

This PR updates the names of the datastore resource files to a common standard that we defined with Tracetest Core contributors.

Changes

  • Updating datastore resource file names and references

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@danielbdias danielbdias marked this pull request as ready for review June 22, 2023 15:58
@@ -192,8 +192,8 @@ func (s *ResourceApiApiService) GetDataStore(ctx context.Context, dataStoreId st
// TODO - update GetDataStore with the required logic for this service method.
// Add api_resource_api_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.

//TODO: Uncomment the next line to return response Response(200, DataStoreResource{}) or use other options such as http.Ok ...
//return Response(200, DataStoreResource{}), nil
//TODO: Uncomment the next line to return response Response(200, datastore{}) or use other options such as http.Ok ...
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be renamed? try running make generate to keep it in sync with the openapi files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No 🤦 , I'm reverting this change.

@@ -12,7 +12,7 @@ package openapi
type DataStoreList struct {
Count int32 `json:"count,omitempty"`

Items []DataStoreResource `json:"items,omitempty"`
Items []datastore `json:"items,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverting too.

@danielbdias danielbdias force-pushed the update/stardardize-datastore-resource branch from 3b83f63 to c7cefe5 Compare June 22, 2023 16:26
@danielbdias danielbdias merged commit c81f1df into main Jun 22, 2023
@danielbdias danielbdias deleted the update/stardardize-datastore-resource branch June 22, 2023 16:41
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