-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: extract payments on club endpoint; feat: download attendance report; feat: update user's response to an event #107
Conversation
In principle, I am all for extending the functionalty. |
Very interesting! I keep meaning to look at Club functions for my own club. For now - does this imply that other API endpoints (and the rest of the library) still work for you, but the club API endpoint provides additional functions? I think that is what I was wondering in #70 ... |
Correct. The current library still works perfectly (i guess same functionality as provided in the front end spond.com/client). This new club endpoint is for the Spond Club functionality |
Yeah of course i would prefer that too... but I think since the two front ends are different (spond.com/client vs. club.spond.com) i thought maybe having two classes might be a clearer separation of concern since the functionality covered in the two are also different but of course I'm open to suggestions! I'll continue to have a think on it... The different name is also not a bad idea either if we are ok with two separate classes. |
Agree, I think best to have them separate to start with, especially as it's not necessarily clear how they might functionally overlap or behave similarly-but-different (e.g. differing data structures). Seems safer to develop separately; common elements can always be refactored out to e.g. a base class. |
I took a stab... Having both of them in the same class is difficult since we'll need two separate tokens to authenticate! Therefore, I opted for 2 separate classes and refactor out a base class. manual test script is going through! My downstream scripts seem to also work! |
672571a
to
91209e3
Compare
This PR ended up containing more features than originally intended. :) |
[Edited] Hi @ptmminh - many thanks for this. Could I ask you to run Edit 2: annoyingly GitHub actions don't appear to be completing right now, so I'll come back to that |
Thanks for the effort. When the actions work again, I'll try to look at it. The first impression is that it looks good, and I like the way it was implemented. But I don't have any clubs to work with, so I can't verify that it is working... If anyone can chime in and confirm that it works, and the tests complete successfully, it is fine with me. |
@elliot-100 thanks for flagging the isort check. All done! |
Just took a quick look at #114 too, do I also need to update README.md with additional features implemented in this PR (i.e. |
Yes, please update the README. |
Sure, done! ✔️
Ok, feel free to merge other PRs first and then ping me and I'll rebase/refactor and we can merge it then. |
Other PRs merged now @ptmminh . I think I would have a couple of review comments but have run out of time today. |
Done rebasing on top of current |
I don't have a Spond Club yet, but |
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.
Many thanks for edits, all resolved and OK to merge as far as I am concerned.
This feature is needed for our club. However, this is a new major addition to the module as a whole (new API endpoint club). a couple of major changes: - base class to avoid redundant code - manual tests added - example usage script added Related to Olen#70.
yep, all set, whoever has write access please rebase or merge onto main! 🚀 Thanks for the review @elliot-100 ! 💯 |
@Olen any comments/changes? I can merge if you'd like. |
Looks good to me |
This feature is needed for our club. However, this is a new major addition to the module as a whole (new API endpoint club).
Related to #70 as far as I can tell.
Therefore, this is just a draft to see how @Olen and @elliot-100 feel about this new feature and start a conversation around it!
I can add some example script/usage if interested