-
Notifications
You must be signed in to change notification settings - Fork 33
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
intranet caffeine manager slots and caffeine interface have diverged #268
Comments
cc @ace-n |
This would be a question for @CJS7070 since he handled the push to prod and
|
@ace-n Well I'm wondering if the machine counts were actually changed on the caffeine project to read from the acm_integrate DB. |
That sounds logical. I'm more suspecting of Caffeine than Liquid if the On Sep 23, 2014 1:54 PM, "Cole Gleason" [email protected] wrote:
|
@ace-n When you migrated the counts from the old tables to the new one interface, did you update the caffeine DB setting? |
@ajmadsen can speak to a lot of this. |
Yeah - based on the wrong soda names in some of the trays, it seems to me |
Liquid doesn't write to the right database/tables. I tried changing Caffeine to match what Liquid's modifying, but it wasn't trivial and wasn't working, so I gave up. The models in Liquid should be modified to match the existing schema. |
@ajmadsen Are the database names not just in a .conf file? If we can change it to point at the Liquid DB and modify Liquid's schema, Liquid doesn't write to the right database/tables. I tried changing The models in Liquid should be modified to match the existing schema. — |
@ace-n Even if the DBs are in a conf file, either Liquid or Caffeine has to modify the table names. |
The best solution is probably to migrate transactions over to DB "soda" and just have liquid read/write to there. That makes the separation pretty clear. |
@colegleason That's definitely doable, but I was trying to shy away from it
|
Either Liquid has to munge it's model to fit caffeine or the other way around. I would rather the Caffeine project have the clear coupling with the DB and Liquid add it, as Liquid is just a UI. |
I know @ajmadsen was considering a rewrite of the (vending machine) code for Caffeine. I don't know if this is still scoped, though -- it'd be a side project and I know he's pretty busy with Admin stuff now. |
@colegleason That makes sense. We can remove the DB routers if/when
|
So the databases and tables Caffeine writes to/reads from are in its machine.conf if you have access to read that. You can get the schemas from the database itself. It's going to be infinitely easier to change liquid code to match what Caffeine's running than the other way around. Re: the rewrite: it's been stalled due to me having more pressing things to work on. |
@ajmadsen Yeah, that's what I'm going forward with. We can worry about a On Sun, Oct 12, 2014 at 12:41 AM, Adam Madsen [email protected]
|
Yep. Heard about it. Sounds good. |
Bad news: Django seems to not support cross-DB relations - thus I either
|
Doesn’t the votes table also have a foreign key on Uid—from whatever table we hold user info in on acm_integrate?
|
It has a foreign key on Soda, which is the kicker. We might be able to
|
If it doesn’t actually have a foreign key tying it to acm_integrate, we should probably move it to the soda db. I think it makes more sense that way if we consider soda votes within the realm of the Caffeine project. No matter where it ends up though, it seems we’ll have a problem with long-term data integrity.
|
I believe it has a ForeignKey with the User model, which absolutely must I think our best option is to move the Vending model to the Soda DB, and |
What we* want. =P
|
Right. Sounds reasonable.
|
@ajmadsen, can you update us when FS service accounts work? |
Slots counts seem to be incorrect. Are they reading the same tables?
The text was updated successfully, but these errors were encountered: