add data refresher, remote storage database toggle#156
add data refresher, remote storage database toggle#156
Conversation
nickevansuk
left a comment
There was a problem hiding this comment.
As a first pass at this, having not got into the detail of what might be causing the problem, the CI issues point to an issue with database initialisation.
If the tables are wiped or not initialised on startup then the auth will fail (which happens in some cases), and if the tables are wiped then there will be no sessions in the database (which happens in other cases).
Can do a deeper investigation, however thought worth bouncing this back first now that CI is fixed? Should be possible to reproduce this locally by running both projects in SQLite mode and starting one and then the other in either order.
| db.CreateTable<GrantTable>(); | ||
| db.CreateTable<BookingPartnerTable>(); | ||
| db.CreateTable<SellerTable>(); | ||
| db.CreateTable<ClassTable>(); | ||
| db.CreateTable<OrderTable>(); | ||
| db.CreateTable<OccurrenceTable>(); | ||
| db.CreateTable<FacilityUseTable>(); | ||
| db.CreateTable<SlotTable>(); | ||
| db.CreateTable<OrderItemsTable>(); | ||
| db.CreateTable<SellerUserTable>(); | ||
| } | ||
| else | ||
| { | ||
| if (!db.TableExists<GrantTable>()) | ||
| db.CreateTable<GrantTable>(); | ||
| if (!db.TableExists<BookingPartnerTable>()) | ||
| db.CreateTable<BookingPartnerTable>(); | ||
| if (!db.TableExists<SellerTable>()) | ||
| db.CreateTable<SellerTable>(); | ||
| if (!db.TableExists<ClassTable>()) | ||
| db.CreateTable<ClassTable>(); | ||
| if (!db.TableExists<OrderTable>()) | ||
| db.CreateTable<OrderTable>(); | ||
| if (!db.TableExists<OccurrenceTable>()) | ||
| db.CreateTable<OccurrenceTable>(); | ||
| if (!db.TableExists<FacilityUseTable>()) | ||
| db.CreateTable<FacilityUseTable>(); | ||
| if (!db.TableExists<SlotTable>()) | ||
| db.CreateTable<SlotTable>(); | ||
| if (!db.TableExists<OrderItemsTable>()) | ||
| db.CreateTable<OrderItemsTable>(); | ||
| if (!db.TableExists<SellerUserTable>()) | ||
| db.CreateTable<SellerUserTable>(); | ||
| } |
There was a problem hiding this comment.
Can use db.CreateTableIfNotExists<>(); here to simplify
… Reference table queries
…penActive.Server.NET into feature/ref-impl-db
…penActive.Server.NET into feature/ref-impl-db
|
Replaced with this PR: #233 |
Soft delete:


New data at edge of window: