-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add a configuration option for badges to be free #1682
Comments
Would that go in a YAML file? Or development.ini? |
I'm thinking this change in development.ini is what we want:
|
A better place to put it would probably be We probably want to automatically mark badges created after this date as Word of warning: this change might be tricker than you'd expect, since we ALSO want to change the frontend display so that after the configured time it updates the badge options to say something like "free" instead of listing a price. If you think this might not be one you want to tackle, I'd be happy to jump on it, just let me know. |
Hey, this says "Add a configuration option", not make it all work. She's And I'll happily move that to dates. Robert Earl r.a.earl@gmail.com On Thu, Feb 11, 2016 at 5:15 PM, Eli Courtwright notifications@github.com
|
And PyCharm doesn't think development.ini belongs here? Did I break something? |
Nah, Eli's right, I totally underestimated the task. I thought you would On Thu, Feb 11, 2016, 17:39 Robert Earl notifications@github.com wrote:
|
FYI, to answer your question: development.ini is indeed the file that uber reads, however, it's generated on each deploy from scratch by puppet. puppet consumes the various .yaml files to generate the development.ini file by populating the variables in here: https://github.com/magfest/ubersystem-puppet/blob/master/templates/uber-development.ini.erb If you're going down this road I can provide a little more detail / writeup on how to add options to the .ini, there's one more step beyond this. |
Don't worry about it, I'll take this one on. |
Dom - thanks, but Vicki explained to me exactly how ... um ... bad this is Eli - thanks for picking this up! Robert Earl r.a.earl@gmail.com On Thu, Feb 11, 2016 at 8:52 PM, Eli Courtwright notifications@github.com
|
As a sidenote, configDB would just swap out the INI layer, the puppet stuff (or something similar to it) is a different layer and it (or something like it) will always have to remain in order to support production servers for multiple magfest events, and staging vs production/etc. i.e. configDB doesn't actually simplify any of the complexity issues that puppet currently solves, and is a separate layer. There's is one (unrelated to configDB) simplification we're hoping to do for puppet that will cut out about two steps and layers for adding new simple config options, it's this: magfest-archive/ubersystem-puppet#28 I just want to make sure that people know just because the system is solving a really complex problem and has a few moving parts doesn't mean it's bad. It just means that the problem it's solving is really hard. I am happy to discuss alternative options that actually solve the multitude of problems which puppet is handling currently. |
(That config stuff is a separate discussion btw from replacing a lot of what puppet is doing with Docker, which I agree that is a direction we should go in) |
It's clear that I don't have a solid grasp on all of this. That's a bad That said, the rest of this discussion is for another time (and certainly Robert Earl r.a.earl@gmail.com On Fri, Feb 12, 2016 at 7:33 AM, Dominic Cerquetti <notifications@github.com
|
100% agree. But the thing is, it already IS possible to do that. If you need to add a new config option, "all" you have to do is add it to https://github.com/magfest/ubersystem/blob/master/uber/configspec.ini with a default value and it's immediately usable in the code, because it'll automatically go into the global So why is it so frustrating in practice? The biggest weakness right now is that if you want to add a new config option where MAGFest is going to use a different value than the default one in That's what magfest-archive/ubersystem-puppet#28 will fix, if we ever do it. Adding a new config option will be as simple as:
As I've said, I'm not against ConfigDB, and it definitely has some advantages. I just wanted to point out that if we'd had magfest-archive/ubersystem-puppet#28 all along, I don't think people would find it painful to add new config options today. But it IS painful, and you're right to complain about it. |
Our at-door kiosk page automatically sets the price on badges, as well as letting people pay through Stripe right on the kiosk.
This is normally great - however, we have an official unofficial policy of making badges free after noon on Sunday. At MAGFest 12, we had to process several refunds for people who went through the kiosk workflow and paid for a badge they shouldn't have.
Probably the best/most flexible solution is to add a datetime configuration option that sets all badge prices to $0 after that date/time. Then we can easily accommodate our business logic without having to hardcode it. It should be considered 'disabled' if it is not set.
The text was updated successfully, but these errors were encountered: