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

Update ProfileFile to support reading sub-properties. #5560

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

millems
Copy link
Contributor

@millems millems commented Sep 4, 2024

Sub-properties are those nested under another property. E.g.

[default]
s3 =
  endpoint_url = foo

Before this change, only s3 would be available, and would contain the raw string underneath the property. After this change, s3 remains the same, but foo can be retrieved through the property s3.endpoint_url.

This change also adds the property for endpoint_url and a convenience setter for profile content strings.

Sub-properties are those nested under another property. E.g.
```
[default]
s3 =
  endpoint_url = foo
```

Before this change, only `s3` would be available, and would contain the raw string underneath the property. After this change, `s3` remains the same, but `foo` can be retrieved through the property `s3.endpoint_url`.

This change also adds the property for `endpoint_url` and a convenience setter for profile content strings.
@millems millems requested a review from a team as a code owner September 4, 2024 22:12
Copy link
Contributor

@zoewangg zoewangg left a comment

Choose a reason for hiding this comment

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

Can we add a changelog entry?

@millems millems added this pull request to the merge queue Sep 9, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 9, 2024
Sub-properties are those nested under another property. E.g.
```
[default]
s3 =
  endpoint_url = foo
```

Before this change, only `s3` would be available, and would contain the raw string underneath the property. After this change, `s3` remains the same, but `foo` can be retrieved through the property `s3.endpoint_url`.

This change also adds the property for `endpoint_url` and a convenience setter for profile content strings.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 9, 2024
@millems millems enabled auto-merge September 9, 2024 21:44
Copy link

sonarqubecloud bot commented Sep 9, 2024

@millems millems added this pull request to the merge queue Sep 9, 2024
Merged via the queue into master with commit 6c8c348 Sep 9, 2024
17 checks passed
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