Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

fix(so-classes): Store SO classes in config.json #955

Merged
merged 5 commits into from
Feb 13, 2018

Conversation

ksendart
Copy link
Contributor

@ksendart ksendart commented Feb 2, 2018

@@ -47,7 +47,7 @@ export class AccountTagService implements EntityTagService {
return `${this.keys.sshDescription}.${sshKey.fingerprint}`;
}

public writeTag(key: string, value: string): Observable<string> {
public writeTag(key: string, value: string): Observable<any> {
Copy link
Contributor

Choose a reason for hiding this comment

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

why any?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zolotyx I replaced string with any, because TagService.writeTag returns TagService.update(entity: any, entityName: string, key: string, value: any): Observable<any>. This method is normally used in different methods, which return Observables of different objects, not only strings.

Copy link
Contributor

@zolotyx zolotyx Feb 8, 2018

Choose a reason for hiding this comment

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

@ksendart , but tag service always returns string values of the tag. Or not? Can we change TagService.update signature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zolotyx TagService.update accept entity: any returns newEntity - object with new tags attribute.

@ksendart ksendart merged commit 200a401 into bwsw:master Feb 13, 2018
@ksendart ksendart deleted the 950-so-classes branch February 13, 2018 06:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants