Skip to content

Add setting conf for Resettable Apps#28

Merged
mike-sul merged 1 commit intomasterfrom
resettable-apps-config
Oct 8, 2021
Merged

Add setting conf for Resettable Apps#28
mike-sul merged 1 commit intomasterfrom
resettable-apps-config

Conversation

@mike-sul
Copy link
Copy Markdown
Contributor

@mike-sul mike-sul commented Oct 7, 2021

  • Added a new param --restorable-apps
  • If not specified then Restorable Apps are OFF
  • If specified just --restorable-apps with no value then turn Restorable Apps ON and use compose_apps as an App list
  • If --restorable-apps is specified and defined with a value then a list of restorable Apps == UNION(reset_apps, compose_apps)

Signed-off-by: Mike Sul [email protected]

@mike-sul mike-sul requested a review from doanac October 7, 2021 11:35
@mike-sul mike-sul force-pushed the resettable-apps-config branch from 722c0c2 to b0dfd09 Compare October 7, 2021 11:39
Copy link
Copy Markdown
Member

@doanac doanac left a comment

Choose a reason for hiding this comment

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

I feel like a "--reset-apps" option is going to feel confusing like "I want to reset the apps", but I can't think of a better thing to call it that wouldn't also be confusing.

Comment thread src/main.cpp Outdated
@doanac
Copy link
Copy Markdown
Member

doanac commented Oct 7, 2021

@rsalveti - you might want to watch what happens with this also.

@mike-sul
Copy link
Copy Markdown
Contributor Author

mike-sul commented Oct 7, 2021

I feel like a "--reset-apps" option is going to feel confusing like "I want to reset the apps", but I can't think of a better thing to call it that wouldn't also be confusing.

maybe --resettable-apps or --restorable-apps or --immortal-apps :)

@doanac
Copy link
Copy Markdown
Member

doanac commented Oct 7, 2021

I like "restorable-apps"

@ricardosalveti
Copy link
Copy Markdown
Member

Also +1 for restorable-apps.

@mike-sul
Copy link
Copy Markdown
Contributor Author

mike-sul commented Oct 8, 2021

@doanac @ricardosalveti I made it "restorable".

Comment thread src/main.cpp Outdated
Comment on lines +121 to +122
"It's set to an empty list automatically if not specified and a system image is preloaded with Restorable Apps."
"Restorable App list = UNION(compose-apps, restorable-apps),")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't want to nit, but I've read this sentence a few times and the "if not specified" part keeps making me think you can't turn off restorable apps. i.e it defaults to all. Then I read your code comments and it becomes clear and expected. I think you should incorporate the comments into the usage message. They are more clear.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

- Added a new param `--restorable-apps`;

- If not specified then Restorable Apps are OFF;

- If specified just `--restorable-apps` with no value then turn
  Restorable Apps ON and use `compose_apps` as an App list;

- If `--restorable-apps` is specified and defined with a value
  then a list of resettable Apps == UNION(reset_apps, compose_apps);

- If `--restorable-apps` is not specified, but a system image is
preloaded with Restorable Apps then turn Restorable Apps ON.

Signed-off-by: Mike Sul <[email protected]>
@mike-sul mike-sul force-pushed the resettable-apps-config branch from 0cb340f to e769f81 Compare October 8, 2021 13:22
@mike-sul mike-sul merged commit 24082c4 into master Oct 8, 2021
@mike-sul mike-sul deleted the resettable-apps-config branch October 8, 2021 13:44
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