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

(chore) Config updates: Cache list of seen vins in ConfigEntry #502

Merged
merged 13 commits into from
Jan 10, 2025

Conversation

WebSpider
Copy link
Contributor

@WebSpider WebSpider commented Dec 30, 2024

This PR is to be merged after #528 and adds:

  • V2.2 adds the list of last seen vins. In case the garage is empty for some reason, we still have the VINs and continue initialization

Main use for this is to be able to start up even if the garage endpoint gives us an error.

@WebSpider
Copy link
Contributor Author

This should help to prevent ending up in situations such as #494

@WebSpider WebSpider requested a review from dvx76 January 2, 2025 20:17
@WebSpider WebSpider marked this pull request as draft January 2, 2025 23:24
@WebSpider
Copy link
Contributor Author

Needs a bit more testing still, conversion does not seem to always happen

@WebSpider WebSpider changed the title (chore) Config updates: Add unique ID and vinlist to ConfigEntry (chore) Config updates: Cache list of seen vins in ConfigEntry Jan 6, 2025
@dvx76
Copy link
Member

dvx76 commented Jan 7, 2025

If I understand correctly this will be closed in favor of #528 + future PRs?

@WebSpider
Copy link
Contributor Author

No, this has been rewritten to contain only the 'vinlist' config data, that enables a cache of last seen vins

@WebSpider WebSpider marked this pull request as ready for review January 9, 2025 09:30
@WebSpider WebSpider requested a review from prvakt January 9, 2025 09:31
Copy link
Collaborator

@prvakt prvakt left a comment

Choose a reason for hiding this comment

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

difficult to test this functionality, but code looks OK, lets try it 👍

@WebSpider
Copy link
Contributor Author

difficult to test this functionality, but code looks OK, lets try it 👍

I've tested it on my install to see if the migration works, and it does. the ConfigEntry (stored in /config/.storage/core.config_entries) is updated

@WebSpider WebSpider merged commit ff8c2b4 into skodaconnect:main Jan 10, 2025
3 checks passed
@WebSpider WebSpider deleted the store-vinlist branch January 10, 2025 10:35
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.

3 participants