Skip to content

provide env ordering via "order" key#209

Merged
jamesward merged 1 commit into
GoogleCloudPlatform:masterfrom
ahmetb:env-ordering
Jan 15, 2021
Merged

provide env ordering via "order" key#209
jamesward merged 1 commit into
GoogleCloudPlatform:masterfrom
ahmetb:env-ordering

Conversation

@ahmetb

@ahmetb ahmetb commented Jan 14, 2021

Copy link
Copy Markdown
Contributor

Introducing an optional "order" key to the env object.

The sorting takes a look at if "order" field is specified or not. If not,
the key is prompted last. If specified, it sorts them by the value of the
"order" field.

The order is still non-deterministic if env objects don't specify an
"order" value. (i.e. this patch still doesn't preserve map order).

Fixes #205.
cc: @jamesward

Introducing an optional "order" key to the env object.

The sorting takes a look at if "order" field is specified or not. If not,
the key is prompted last. If specified, it sorts them by the value of the
"order" field.

The order is still non-deterministic if env objects don't specify an
"order" value. (i.e. this patch still doesn't preserve map order).

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
@jamesward

Copy link
Copy Markdown
Contributor

Awesome! Thank you.

@jamesward jamesward merged commit 3efeb65 into GoogleCloudPlatform:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants