tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.29k stars 254 forks source link

feat: expose config using an API #2817

Open tusharmath opened 1 month ago

tusharmath commented 1 month ago

Create a new route /graphql which internally exposes a GraphQL API with the following schema

schema {
  query: Query
}

type Query {
  config: Config!
}

type Mutation {
  patch(config: Config!): Status
}

type Config {
  # .. should be auto-generated from config.rs
}

type Status {
  id: ID #For now should return 1
}

Technical Requirements

schema @server(admin: {port: 8001}) {
  query: Query
}
tusharmath commented 1 month ago

/bounty $200

algora-pbc[bot] commented 1 month ago

💎 $200 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #2817 with your implementation plan
  2. Submit work: Create a pull request including /claim #2817 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall! 🧐 Checkout our guidelines before you get started. 💵 More about our bounty program.

Attempt Started (GMT+0) Solution
🔴 @ssddOnTop Sep 15, 2024, 7:46:17 PM WIP
🔴 @karatakis Sep 20, 2024, 9:47:52 AM WIP
🔴 @EveEdwin Sep 24, 2024, 5:54:43 PM WIP
🔴 @TomBebb Nov 8, 2024, 7:12:51 PM WIP
ssddOnTop commented 1 month ago

/attempt #2817

Algora profile Completed bounties Tech Active attempts Options
@ssddOnTop 76 tailcallhq bounties
Rust, Java,
C & more
Cancel attempt
algora-pbc[bot] commented 1 month ago

@ssddOnTop: Reminder that in 1 days the bounty will become up for grabs, so please submit a pull request before then 🙏

meskill commented 1 month ago

is there a reason to generate a type Config? Schema types are dynamic and will be different for every config, that's will be hard to fetch actually. Apollo federation just uses String to pass the sdl content

algora-pbc[bot] commented 1 month ago

The bounty is up for grabs! Everyone is welcome to /attempt #2817 🙌

karatakis commented 1 month ago

Does the provided mutation update the configuration when the Tailcall service is online?

type Mutation {
  patch(config: Config!): Status
}
karatakis commented 1 month ago

/attempt #2817

Algora profile Completed bounties Tech Active attempts Options
@karatakis 2 tailcallhq bounties
Rust, JavaScript,
PHP & more
Cancel attempt
algora-pbc[bot] commented 1 month ago

@karatakis: Reminder that in 1 days the bounty will become up for grabs, so please submit a pull request before then 🙏

algora-pbc[bot] commented 1 month ago

The bounty is up for grabs! Everyone is welcome to /attempt #2817 🙌

EveEdwin commented 1 month ago

/attempt #2817

tusharmath commented 1 month ago
tusharmath commented 1 month ago

@meskill In general its a good idea to have type-safe APIs, that's the whole point of GraphQL and gRPC, however for now I have changed the requirements in #2903 so that we can build this quickly.

algora-pbc[bot] commented 1 month ago

@EveEdwin: Reminder that in 1 days the bounty will become up for grabs, so please submit a pull request before then 🙏

algora-pbc[bot] commented 1 month ago

The bounty is up for grabs! Everyone is welcome to /attempt #2817 🙌

github-actions[bot] commented 1 week ago

Action required: Issue inactive for 30 days. Status update or closure in 7 days.

TomBebb commented 4 days ago

/attempt #2817

algora-pbc[bot] commented 3 days ago

@TomBebb: Reminder that in 1 days the bounty will become up for grabs, so please submit a pull request before then 🙏

algora-pbc[bot] commented 2 days ago

The bounty is up for grabs! Everyone is welcome to /attempt #2817 🙌