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

Planner: always create simple plan even if tariff errors #19004

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Conversation

andig
Copy link
Member

@andig andig commented Feb 20, 2025

Fix #18958 (comment)

/cc @naltatis du würdest bei nil Plan jetzt HTTP 400 bekommen- das war vorher nicht der Fall, erscheint aber sinnvoll. Passt das?

@andig andig added the bug Something isn't working label Feb 20, 2025
@andig andig requested a review from naltatis February 20, 2025 14:48
@naltatis
Copy link
Member

Passt das?

Kann ich spontan nicht sagen. Die Tests laufen durch. Das ist erstmal ein gutes Zeichen. Ich check das morgen noch mal händisch.

@andig
Copy link
Member Author

andig commented Feb 20, 2025

Danke. Die einzige echte Änderung ist, dass GetPlan keinen Fehler mehr liefert wenn die Rates einen Fehler haben. Da das die einzige Fehlerkondition war gibts kein Error Return mehr. Es kann aber weiterhin "kein Plan", also nil zurück kommen. Das wurde im UI vorher gar nicht geprüft, deshalb bin ich unsicher ob ein HTTP 400 da angemessen wäre.

@andig
Copy link
Member Author

andig commented Feb 21, 2025

Ich schiebs erstmal rein- das ist ein echter Bug.

@andig andig merged commit acbcf54 into master Feb 21, 2025
6 checks passed
@andig andig deleted the fix/planner branch February 21, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Planner outdated leads to car not charged
2 participants