Skip to content

fix: upstream setting keys should be optional#474

Merged
tusharmath merged 6 commits intomainfrom
upstream-keys-optional
Oct 13, 2023
Merged

fix: upstream setting keys should be optional#474
tusharmath merged 6 commits intomainfrom
upstream-keys-optional

Conversation

@amitksingh1490
Copy link
Copy Markdown
Collaborator

@amitksingh1490 amitksingh1490 commented Oct 12, 2023

Summary:
upstream setting keys should be optional in order to have the capability to merge right else if right don't have upstream values it would pick default always

Build & Testing:

  • I ran cargo test successfully.
  • I have run ./lint.sh to address and fix linting issues.

Checklist:

  • I have added relevant unit & integration tests.
  • I have updated the documentation accordingly (if applicable).
  • I have performed a self-review of my own code.

@github-actions github-actions bot added the bug label Oct 12, 2023
@amitksingh1490 amitksingh1490 added bug and removed bug labels Oct 12, 2023
.http2_keep_alive_while_idle(upstream.keep_alive_while_idle.unwrap_or(false))
.pool_idle_timeout(Some(Duration::from_secs(upstream.pool_idle_timeout.unwrap_or(60))))
.pool_max_idle_per_host(upstream.pool_max_idle_per_host.unwrap_or(200))
.user_agent(upstream.user_agent.clone().unwrap_or("Tailcall/1.0".to_string()));
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.

Don't put hard coded values here in the client.
Create methods for each field type to get the default values from the Server.

@tusharmath tusharmath merged commit 025d9f3 into main Oct 13, 2023
@tusharmath tusharmath deleted the upstream-keys-optional branch October 13, 2023 06:59
@tusharmath tusharmath mentioned this pull request Oct 13, 2023
5 tasks
digital-phoenix pushed a commit to digital-phoenix/tailcall that referenced this pull request Oct 15, 2023
* commit '69814ec785fef5d5cf3d4ba925a4910e0a09715e':
  refactor: use default batch settings if group_by is used (tailcallhq#497)
  refactor: use blueprint server throughout (tailcallhq#495)
  feat: hostname config in server (tailcallhq#493)
  Load YAML & JSON formats via CLI (tailcallhq#467)
  fix(deps): update rust crate regex to 1.10.1 (tailcallhq#491)
  fix(deps): update rust crate async-trait to 0.1.74 (tailcallhq#492)
  feat: support custom-headers (tailcallhq#455)
  fix: n + 1 issue (tailcallhq#487)
  fix: mandatory file path
  refactor: drop key from group by (tailcallhq#484)
  feature: load multiple configs via CLI (tailcallhq#482)
  feat: merge right on config (tailcallhq#476)
  doc: example update
  fix: upstream setting keys should be optional (tailcallhq#474)
  refactor: prerequisite to test multi sdl (tailcallhq#475)
  refactor: use btreeset where duplicates are not allowed (tailcallhq#478)
  fix: info loss in const serialisation (tailcallhq#477)
  feat: support to configure http settings (tailcallhq#388)
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