Skip to content

Refactor namespace logic out of default command logic#129

Merged
jobarr-amzn merged 1 commit intoamazon-ion:masterfrom
popematt:namespace
Jul 2, 2024
Merged

Refactor namespace logic out of default command logic#129
jobarr-amzn merged 1 commit intoamazon-ion:masterfrom
popematt:namespace

Conversation

@popematt
Copy link
Copy Markdown
Contributor

@popematt popematt commented Jul 2, 2024

Issue #, if available:

Follow up for #128.

Description of changes:

  • Changes the defaults of IonCliCommand's is_stable() to false and is_porcelain() to true.
  • Creates a new trait for namespaces so that they are stable and plumbing by default. Also has the benefit of extracting the namespace logic out of IonCliCommand.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@popematt popematt requested a review from jobarr-amzn July 2, 2024 22:51
}

fn is_stable(&self) -> bool {
false // TODO: Should this be true?
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.

We've debated over whether or not there should be upconversion of e.g. timestamps before... but it seems like that's not something you'd want as the default behavior. Ideally it seems like you'd want the default to be a stable, lossless transformation.

I guess what I'm saying is that I don't see any reason this couldn't be stable.

@jobarr-amzn jobarr-amzn merged commit e7d900f into amazon-ion:master Jul 2, 2024
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