-
Notifications
You must be signed in to change notification settings - Fork 1
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
feature/BE-30: Exhibitions #344
Conversation
In the lab session of 13/12/2022, we talked about sending an additional field from exhibition related APIs that gives the status information of the exhibition. I added the corresponding field:
|
…2group8 into feature/BE-30
|
… requests, updated exhibition related serializers and updated Swagger
Thank you for the detailed examination @BElifb . Let me list my updates:
Now, PR is again open to review. Thank you for your time. |
|
There were some errors due to the update coming from #358. Now it should be ok.
This error was due to the fact that I had a expression like this: |
Yep, this was exactly what I aimed to achieve :D. Frontend can leave a small warning to somewhere stating that artitems that are specifically uploaded for an exhibition will be gone if the exhibition is deleted. Actually, when someone wants to delete an exhibition, this warning can pop up in a very attention drawing manner. Not really important though. As you suggested, a user always can upload an art item to his gallery and then display it in an exhibition. It won't go away when the exhibition is deleted. I don't really think people will want to delete their exhibitions anyways. Why would they |
In #354 we added |
IndexError at /api/v1/exhibitions/online/3list index out of range
|
Fixed the |
|
|
I guess you were trying to send the data as
Much appreciated!
It is stored as an ArtItem. You can find it among the artitems and you'll see that it has a VirtualExhibition associated with it.
Updated it, now it gives that error only when such an exhibition cannot be found. I did it intentionally to cover all cases easily but was not a good choice.
Could you please share your input and the expected output? I tried it again and it seems to be working. Edit: I think I found the problem, could you try it again? |
|
|
This PR is directly related to #343. Additionally, it involves minor fixes/updates on other parts:
2022-11-18T13:51:56.342042Z
. New version will be something like this:08-12-2022 00:38:25
.AbstractExhibition
,VirtualExhibition
,OfflineExhibition
,ExhibitionArtItem
.AbstractExhibition
is an abstract model that doesn't have a correspondence in the database directly. Offline and online exhibitions are derived from it.artitems_gallery
. New images should be provided as list of base64 encodings in the fieldartitems_upload
. During our meetings, we didn't give a final decision at this point, therefore I wanted to provide both of the opportunities to users. (Please keep in mind that uploading more than one image to S3 will take some time - so you may want to add some 'loading' effect or something)