Restructure id logic and move private apps to plugins_data collection#1285
Restructure id logic and move private apps to plugins_data collection#1285
Conversation
|
man, for the auto generated id, pls use: |
|
1/ Yes slugifying it |
|
I'll change to use ulid in the next PR, can we have these minor changes merged for now? |
|
1/ find a better implementation pls, too manny failures with your code |
|
1/ Thinking of using this python package for it https://pypi.org/project/python-slugify/ |
|
1/ good enough |
|
2/ I only did one leetcode problem in my life haha. Thinking of storing the most recently incremented id in a firestore collection |
|
2/ our plugin is not that big yet, just count()+1 |
|
2/ Oh okay lol. slugified name + doc_count + 1 If the app is private, I am appending |
|
4/ please run a test for https://github.com/BasedHardware/omi/pull/1285/files#diff-e9334601001806a62e30da99b753c713c2c20213a661ced0a88542e66e39697eR26 / since i encounter the error with similar code at #1300 (comment) 5/ you could simplify the database > apps by using a wrapper func in utils > app
|
|
4/ Though I did not get that error when running locally, will try to check |
|
Did the suggested changes and used BaseCompositeFilter for |
|
lgtm @mdmohsin7 🥳 pls resolve the code conflict |
Resolved 🥳 |
…BasedHardware#1285) - [x] Use ULID for ID - [x] Store private and public plugins in `plugin_data` - [x] Migrate existing private plugins to `plugin_data` - [x] Cleanup some of the unused functions - [x] Redirect some of the plugins endpoints to use apps functions - [x] Fix analytics for new apps - [x] Test with old and new apps Part of BasedHardware#1290
plugin_dataplugin_dataPart of #1290