-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
every user is organizer for every event #6266
Comments
@iamareebjamal @CosmicCoder96 I think the problem lies in the fact that currently open-event-server/app/api/schema/users.py Lines 151 to 157 in b7ffa62
organizer_events = Relationship(
self_view='v1.user_organizer_event',
self_view_kwargs={'id': '<id>'},
related_view='v1.event_list',
schema='EventSchema',
many=True,
type_='event') How should I proceed to make sure that the Relationship actually checks whether the current user is an organiser in the event or not, I could use help in this |
@uds5501 are you still working on this? |
@prabhupant No I am not, but would like to provide a heads up. It's a FE issue. The relations are correct in the server but not in the frontend. If you want to take over, be my guest |
@uds5501 Transfer it to FE |
@uds5501 Wanted to know if the server is providing correct relation than Is it hardcoded for every user? |
@kushthedude the server side relationships are working fine. as I have already mentioned above :) |
@uds5501 Can i work on this issue ? |
@Haider8 Progress? |
Yes, working on it. Was stuck in some college work.
…On Sun, Mar 31, 2019, 1:12 AM Kush Trivedi ***@***.*** wrote:
@Haider8 <https://github.com/Haider8> Progress?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/fossasia/open-event-frontend/issues/2390#issuecomment-478282903>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ApSyUOS2nSBe5huSdeAc4j21LlTV5pmeks5vb746gaJpZM4cI3cv>
.
|
@uds5501 @prabhupant I think this issue is not there anymore |
@Haider8 It is still there :) |
@uds5501 If you haven't spent much time on it, May I work on this issue? |
@prateekj117 Go for it! |
@uds5501 This problem doesn't seem to persist on my system. |
Please try makin an event from a super user, and one from a new user and
let me know the results.
…On Sun, 7 Apr 2019, 16:16 Prateek Jain, ***@***.***> wrote:
@uds5501 <https://github.com/uds5501> This problem doesn't seem to
persist on my system.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/fossasia/open-event-frontend/issues/2390#issuecomment-480579002>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUHDVYdVIS1obi-vWaEATuHaFGrWKAXeks5vecx8gaJpZM4cI3cv>
.
|
@uds5501 Yes, you are right. The problem persists. |
@CosmicCoder96 @iamareebjamal This is a temporary fix. I think that this issue is of the server as @uds5501 commented above. Can you please transfer this to the server so that I can do the permanent fix there. |
@prateekj117 this is an issue at the front-end only. Happening due to incorrect model relationships at ember model levels. The server side relations are working fine, I have verified |
@uds5501 Thanks for the info. In that case, I will look into it. |
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Describe the bug
Please refer to the screen shot given below
Expected behavior
Only the events whom the user is actually an organiser should be displayed
Screenshots
Desktop (please complete the following information):
Additional context
Working on it
The text was updated successfully, but these errors were encountered: