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

Add optional new api routes #504

Closed
wants to merge 1 commit into from
Closed

Conversation

dragonhunt02
Copy link
Contributor

@dragonhunt02 dragonhunt02 commented Feb 25, 2025

Adds 'use_dev_api' toggle in Project Settings to test new uro server

@@ -12,6 +12,7 @@ const http_pool_const = preload("./http_pool.gd")
# renewal_token and access_token have moved to GodotUroData.
var cfg: ConfigFile = null

var new_api: bool = false
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var new_api: bool = false
var new_api: bool = false

Can you try a variable that is more unique so we know what it is a few years from now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, but do we plan to keep this toggle that much?

Copy link
Member

Choose a reason for hiding this comment

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

feature toggle names last forever

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to 'use_dev_api'

Copy link
Member

Choose a reason for hiding this comment

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

this is a problem when we use_dev_api_2?

Copy link
Contributor Author

@dragonhunt02 dragonhunt02 Feb 25, 2025

Choose a reason for hiding this comment

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

My idea was to have a permanent, non-versioned flag that enables "in-progress, not-deployed" features that will be merged as default api soon.
you want to imply a version instead, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we could use use_api_v1_1

Copy link
Member

Choose a reason for hiding this comment

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

I was thinking a specific permanent flag for each feature, that enables "in-progress, not-deployed" features that will be merged as default api soon.

So like English words without versions but meaning something. I'd accept codewords too.

Copy link
Member

Choose a reason for hiding this comment

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

@dragonhunt02
Copy link
Contributor Author

After some discussion we decided to postpone api breaking changes, so I'm closing this PR.

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