-
Notifications
You must be signed in to change notification settings - Fork 17
Added membership_plans. Fixes #14 #15
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
Conversation
Any update on this? |
14-draft.json
Outdated
"monthly", | ||
"weekly", | ||
"daily", | ||
"hourly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should include "other". What if there is biyearly payment or some other type of system?
If renewal interval is "other", then the description must be filled out. (I don't think that's something we can enforce with JSON schema though. But we can document it.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a good idea! We add it now!
14-draft.json
Outdated
@@ -1132,6 +1132,49 @@ | |||
"end" | |||
] | |||
} | |||
}, | |||
"membership_plans": { | |||
"description": "A list of the different memberhsip plans your hackerspace might have.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*membership
14-draft.json
Outdated
"type": "string" | ||
}, | ||
"value": { | ||
"description": "How much does this plan cost!", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace !
with ?
14-draft.json
Outdated
"type": "string" | ||
}, | ||
"renewal_interval": { | ||
"description": "When does the membership be renewed! If you select other, please specify in the description what your renewal interval is.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrite the first sentence to to How often is the membership renewed?
CHANGELOG.md
Outdated
@@ -13,3 +13,4 @@ Changes should start with one of the following tags: | |||
- [added] The `contact.keymasters` array items can also contain a `xmpp` field | |||
- [changed] The value in `sensors.account_balance` can now be any ISO 4217 string | |||
- [added] The `timezone` key was added under `location` | |||
- [added] The `membership_plans` was added to represent membership plans a space might have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add "key" between "membership_plans" and "was"?
Any update on this? |
Sorry for the delay! One doesn't get a notification from Github when you push a commit to a branch. So to avoid us not noticing when you add the requested changes, just add a comment which mentions the reviewer who requested them (@dbrgn in this case). |
Looks good to me now! @rnestler, agree? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some bike-shedding and a more serious question about membership renewal interval vs. payment interval.
14-draft.json
Outdated
"type": "object", | ||
"properties": { | ||
"name": { | ||
"description": "The name of the membership plan. For example Student Membership, Normal Membership etc...", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick: I would use either etc. or ...:
- "The name of the membership plan. For example Student Membership, Normal Membership, ..."
- "The name of the membership plan. For example Student Membership, Normal Membership, etc."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
"description": "How often is the membership renewed? If you select other, please specify in the description what your renewal interval is.", | ||
"type": "string", | ||
"enum": [ | ||
"yearly", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "yearly" or "annually" more common?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think i would stick with "yearly" since it's more consistent with the other options.
"weekly", | ||
"daily", | ||
"hourly", | ||
"other" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we now which intervals are most common? Maybe add bi-annually? Also at coredump for example we communicate 10CHF/month, but actually bill yearly and also membership is renewed yearly. How would we describe that?
{
"name": "Student",
"value": 10,
"currency": "CHF",
"renewal_interval": "monthly",
"description": "Billed annually"
}
or
{
"name": "Student",
"value": 120,
"currency": "CHF",
"renewal_interval": "yearly"
}
I just see some potential for confusion here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the renewal and billing usually match, so we should probably chose the yearly renewal interval in our case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just need to document clearly, how it is intended to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, absolutely :) Any proposals for wording? Maybe How often is the membership renewed (billed)?
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could just add some concrete examples to the description string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@the-metalgamer ok, do you want to do the necessary adjustments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbrgn Yes, but currently I'm thinking about how to incorporate the examples in the descriptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also merge it as is and improve it later, to not stall this PR for such a long time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might be a good idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! |
No description provided.