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

Differentiate between instance softwares #560

Merged
merged 4 commits into from
Sep 28, 2024
Merged

Conversation

kozabrada123
Copy link
Member

  • Implements the /ping and /version endpoints
  • Adds a software field to Instance, which is automatically determined
  • If no specific GatewayOptions are provided, they will be automatically created based off the instance's software
  • Adds a bit better error handling to /policies/instance, fixes a bug where it doesn't work on spacebar (missing a trailing slash)

- handle deserialization errors and not parsing the http content into a string

- the route only works on spacebar if you add a trailing slash for some reason
@kozabrada123 kozabrada123 added Type: Enhancement Enhances an existing feature or behaviour. Module: API labels Sep 28, 2024
@kozabrada123 kozabrada123 linked an issue Sep 28, 2024 that may be closed by this pull request
src/api/instance.rs Fixed Show fixed Hide fixed
src/api/instance.rs Fixed Show fixed Hide fixed
src/api/policies/instance/instance.rs Fixed Show fixed Hide fixed
src/instance.rs Fixed Show fixed Hide fixed
@kozabrada123 kozabrada123 merged commit 333dad8 into dev Sep 28, 2024
9 checks passed
bitfl0wer pushed a commit that referenced this pull request Oct 10, 2024
* Add InstanceOptions type

* feat: add /ping and /version, implement software differentiation

* fix: better error handling, missing slash in /policies/instance

- handle deserialization errors and not parsing the http content into a string

- the route only works on spacebar if you add a trailing slash for some reason
bitfl0wer added a commit that referenced this pull request Oct 10, 2024
Release tracker for v0.17.0 of chorus, set to release on October 10th,
2024.

## Public API changes

- #561: Add missing fields in `GatewayReady` event, create
`GatewayReadyBot` for Bots
- #560: Differentiate between instance softwares through /version and
/ping endpoints
- #537: Implement 30 user routes
- #565 : Fix sqlx En-/Decoding of PremiumType
- #567

## Internal changes

## Bugfixes

- #565 : Fix sqlx En-/Decoding of PremiumType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: API Type: Enhancement Enhances an existing feature or behaviour.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add system for differentiation of instance softwares
1 participant