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 application settings #1097

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add application settings #1097

wants to merge 1 commit into from

Conversation

JSReds
Copy link
Contributor

@JSReds JSReds commented May 28, 2021

Add application settings

Change-type: minor
Signed-off-by: Andrea Rosci [email protected]


Contributor checklist
  • Includes tests
  • Includes typings
  • Includes updated documentation
  • Includes updated build output

Add application settings

Change-type: minor
Signed-off-by: Andrea Rosci <[email protected]>
@JSReds JSReds requested a review from a team as a code owner May 28, 2021 11:36
@JSReds JSReds self-assigned this May 28, 2021
Comment on lines +1610 to +1618
* balena.models.application.setIsPublic('MyApp', true);
*
* @example
* balena.models.application.setIsPublic(123, true);
*
* @example
* balena.models.application.setIsPublic('MyApp', true, function(error) {
* if (error) throw error;
* });
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* balena.models.application.setIsPublic('MyApp', true);
*
* @example
* balena.models.application.setIsPublic(123, true);
*
* @example
* balena.models.application.setIsPublic('MyApp', true, function(error) {
* if (error) throw error;
* });
* balena.models.application.setClass('MyApp', 'fleet');
*
* @example
* balena.models.application.setClass(123, 'fleet');
*
* @example
* balena.models.application.setClass('MyApp', 'fleet', function(error) {
* if (error) throw error;
* });

await balena.models.application.get(this.application.id, {
$select: 'is_of__class',
});
expect(originalClass).to.not.equal(null);
Copy link
Member

Choose a reason for hiding this comment

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

How about?

Suggested change
expect(originalClass).to.not.equal(null);
expect(originalClass).to.equal('fleet');

await balena.models.application.get(this.application.id, {
$select: 'is_public',
});
expect(originalIsPublic).to.not.be.true;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
expect(originalIsPublic).to.not.be.true;
expect(originalIsPublic).to.be.false;

?

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