Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Support descriptions for enum values in config. - #589

Closed
oggy wants to merge 1 commit into
atom:masterfrom
oggy:descriptive-enums
Closed

oggy wants to merge 1 commit into
atom:masterfrom
oggy:descriptive-enums

Conversation

@oggy

@oggy oggy commented Jul 15, 2015

Copy link
Copy Markdown
Contributor

This goes with atom/atom#7916

Comment thread spec/settings-panel-spec.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What about an object for clarity? {value: 'one', description: 'One'}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 Makes it even clearer and sets up for making it easier to possibly adding further metadata in the future.

@thomasjo

Copy link
Copy Markdown
Contributor

Specs failures seemed legit, but I kicked off a new build just to be on the safe side.

@benogle

benogle commented Oct 13, 2015

Copy link
Copy Markdown
Contributor

Likely legit cause behavior is not in master.

@oggy
oggy force-pushed the descriptive-enums branch from be30733 to 8de50dc Compare October 14, 2015 05:40
@oggy

oggy commented Oct 14, 2015

Copy link
Copy Markdown
Contributor Author

I've updated this and the other PR to use objects with value and description properties.

I think the tests are failing because the updated test here depends on the other PR being merged, and the Atom on Travis would not include that. If I run locally with ATOM_DEV_RESOURCE_PATH pointing to the PR branch of Atom, it passes.

Is that ok? Do we need to have a test suite that works with older Atoms? I figured being a core package this was fine, but let me know if not.

@thomasjo

Copy link
Copy Markdown
Contributor

I've updated this and the other PR to use objects with value and description properties.

Awesome! 👏

Is that ok? Do we need to have a test suite that works with older Atoms? I figured being a core package this was fine, but let me know if not.

I think that's totally OK. Nobody should ever install this manually anyway (outside of hacking on it), so that isn't really something we need to handle.

This looks good to me! 🚢

@Arcanemagus

Arcanemagus commented May 5, 2016 •

Copy link
Copy Markdown
Contributor

Is there a reason the associated Atom PR was merged back on 2016-01-26 but this was never merged?

The documentation shows this as available, but when it is used settings-view just shows blank entries. 😕

@lee-dohm

lee-dohm commented May 5, 2016

Copy link
Copy Markdown
Contributor

Is there a reason the associated Atom PR was merged back on 2016-01-26 but this was never merged?

Someone made a mistake? (These things happen, y'know 😆)

I'm going to take a look at this and see if it can easily be updated and merged. Not sure how much drift there has been since it was last looked at.

@lee-dohm

Copy link
Copy Markdown
Contributor

Closing this as it is superseded by #788.

@lee-dohm lee-dohm closed this May 16, 2016
@lee-dohm

Copy link
Copy Markdown
Contributor

Thanks very much @oggy for the work you did!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants