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

[Bug]: DAB shouldn't throw exceptions for scenarios that are ONLY applicable to file based configs #1820

Closed
1 task done
Aniruddh25 opened this issue Oct 16, 2023 · 0 comments · Fixed by #1825
Closed
1 task done
Assignees
Labels
bug Something isn't working triage issues to be triaged
Milestone

Comments

@Aniruddh25
Copy link
Contributor

What happened?

Exceptions thrown while parsing configuration for example:

return envValue is not null ? envValue :

should only be thrown when the configuration is sourced from a file.

For configurations provided to the configuration endpoint - these exceptions should NOT be thrown.

This issue to track down such exceptions that are ONLY applicable to file based configuration and disable throwing them for non-file based configs.

E.g. Exception
image

Version

0.8.52

What database are you using?

Azure SQL

What hosting model are you using?

Static Web Apps (SWA)

Which API approach are you accessing DAB through?

GraphQL

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Aniruddh25 Aniruddh25 added bug Something isn't working triage issues to be triaged labels Oct 16, 2023
@Aniruddh25 Aniruddh25 added this to the 0.9 milestone Oct 18, 2023
aaronpowell added a commit that referenced this issue Oct 18, 2023
Test isn't implementing logic of #1820 yet, just replicating an existing test to ensure the test runner passes initially.

Created in a new test class to reduce changes of merge conflicts, but extracted out shared logic from existing test class.
seantleonard pushed a commit that referenced this issue Oct 20, 2023
## Why make this change?

- Fixes #1820 

## What is this change?

- New test coverage for #1820
- Added a way to control error handling when env vars aren't set -
default is left to throw, override to ignore

## How was this tested?

- [x] Integration Tests
- [ ] Unit Tests
seantleonard pushed a commit that referenced this issue Oct 20, 2023
## Why make this change?

- Fixes #1820 

## What is this change?

- New test coverage for #1820
- Added a way to control error handling when env vars aren't set -
default is left to throw, override to ignore

## How was this tested?

- [x] Integration Tests
- [ ] Unit Tests
Aniruddh25 pushed a commit that referenced this issue Oct 21, 2023
…1825) (#1834)

Cherry pick #1825 to 0.9

## Why make this change?

- Fixes #1820 

## What is this change?

- New test coverage for #1820
- Added a way to control error handling when env vars aren't set -
default is left to throw, override to ignore

## How was this tested?

- [x] Integration Tests
- [ ] Unit Tests

Co-authored-by: Aaron Powell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage issues to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants