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

feat(api-core): helper function for settings api #64

Merged
merged 2 commits into from
Aug 22, 2018

Conversation

KaseyPowers
Copy link
Contributor

No description provided.

Copy link
Collaborator

@TheSharpieOne TheSharpieOne left a comment

Choose a reason for hiding this comment

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

Probably should also add avUser to the angular and axios implementations so that the end user doesn't need to pass it in when instantiating a new avSettingsApi.

@@ -15,5 +17,41 @@ export default class AvSettings extends AvApi {
merge,
config: options,
});
this.avUsers = avUsers;
Copy link
Collaborator

@TheSharpieOne TheSharpieOne Aug 22, 2018

Choose a reason for hiding this comment

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

Probably should throw if avUser is not provided here.

Or throw in the methods where it is used so that the other methods can still be used without needing it (maybe a less breaking change).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it to the other implementations, that pattern makes sense but might be worth saving for a refactor PR for all the other apis with similar dependencies.

Copy link
Contributor

Choose a reason for hiding this comment

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

@KaseyPowers changes LGTM. Can you open a ticket with the refactor suggestions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created #66

@TheSharpieOne TheSharpieOne merged commit f247235 into master Aug 22, 2018
@TheSharpieOne TheSharpieOne deleted the feature/settingsApiUpdate branch August 22, 2018 18:50
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.

3 participants