osc-vitap / oschub Goto Github PK
View Code? Open in Web Editor NEWA centralized web application for OSC livestreams
Home Page: https://osc-hub.herokuapp.com
License: Apache License 2.0
A centralized web application for OSC livestreams
Home Page: https://osc-hub.herokuapp.com
License: Apache License 2.0
the eventdetail.html will have reg button to register user for the event
and to save the details in eventuserdata
As per #14
Using of Template extension provided in Django makes it easier to reuse the parts of HTML in other apps or pages.
Speaking of here, I've created a Navbar and footer which will be constant throughout the whole application.
So, there is a need to create a base file (base.html), which consists of a navbar & footer. Using template extension, we can use the base file in all of the required pages in order to get Header and Footer.
Changes made,
main.html
.main.html
.allauth
redirection has been removed from the urls.py
.are done in commit df79057
refactor the eventLogo url
from
"https://drive.google.com/file/d/1hl6Xt2cnUMC5RUrmXH6w-kQD8fhuF3rC/view?usp=sharing"
to
"https://drive.google.com/uc?export=view&id=1hl6Xt2cnUMC5RUrmXH6w-kQD8fhuF3rC"
.env
file has been updated to contain the client ID and secret key as well.allauth.socialaccount.models.SocialApp.DoesNotExist
issue is now fixed with commit 2146d33
Usage of LoginRequiredMixin for the main.html in dashboard
.
As per the change, login.html
is included in the dashboard
, so that two conditions takes place in:-
1. If the user is not logged in, Login card must be shown
2. If user is logged in, main content must be shown (upcoming events, past events, and related things)
changes to be done in main.html
template in the dashboard
app.
Is your feature request related to a problem? Please describe.
The OSCHub needs a total UI Revamp as the UI seems stiff and less vibrant. It will be nice if the UI is more lively and user-friendly to increase user-activity on the platform.
Describe the solution you'd like
One of the solution is to modify classes and styles available in the present CSS style sheets and if possible add in comments to improve script readability.
Describe alternatives you've considered
If possible, try using TailwindCSS to replace Bootstrap 5.
Additional context
Good Luck with UI Revamp.
Creating a PR.
Send a GET request to https://osc-api.herokuapp.com/api/v1/event/announcement?key=KEY
endpoint when a new event is created.
Upon event creation, calling the endpoint will automatically send out a Discord announcement.
Currently, if you want to share a file to a new admin then you need to access the code and add in the new Email-ID. Which is not appropriate as a client. So, the suggested fix:
Describe the solution you'd like
Hosting the application online for everyone to use.
Currently working on Heroku.
Describe alternatives you've considered
None so far.
The Documentation for OSCHub has not been given a thought throughout the course of building the project. However, it will be essential in the case that the project is to be made public.
The docs that are to be added, are regarding each application and should preferably be made by the person who was in charge of the feature.
The initial contributors to each of the features are,
Front End => @Sudhee-bsp
Back End => @bhargavd2
DB & End => @kode-logger
The current system restricts event registration to members of VIT-AP. Remove this and have external registrations included.
Changes that are made,
main.html
for testing, will be modified with future commits on the frontdev
branch, by @Sudhee-bsp.urls.py
.settings.py
to work with the django-allauth
module.requirements.txt
has been updated to contain django-allauth
.Is your feature request related to a problem? Please describe.
Right now there is no way for someone to work on OSCHub without having access to credentials.
This means they'll have to go through the manual task of generating a bunch of new credentials just to even start working on it.
Describe the solution you'd like
Creating a test environment that mimics the actual main application would enable developers to build and work on the application freely and also allow members from outside the community to contribute and collaborate on the project.
Describe alternatives you've considered
None.
Is your feature request related to a problem? Please describe.
Whenever a new event is added to OSCHub, it is available to all the users publicly. Due to this, testing an event before going live is not possible and it doesn't seem like a good idea to reveal test events live.
Describe the solution you'd like
By adding a new Boolean parameter (something like isPublic
) to the database, we can check whether the value is true or false.
If true then
Else
Describe alternatives you've considered
None
Additional context
This can be achieved by adding some control statements to the backend and creating a new attribute in the database table.
the live_event.html will have checkin button to checkin user for the event
and to save the details in eventuserdata
register button must not be displayed for past event
livestream button should get activated at the start of the event not before that
livestream button should not be displayed after end time
As discussed, the plan is to transfer data from models to gsheets for backup purposes.
Tasks to achieve:
Describing the bug
Login page is being loaded even though the user is logged in when navigated to the root URL https://osc-hub.herokuapp.com/
It should maintain user session across once logged-in till logged out (in-case used sessions) or cookies for a particular time (in-case cookies).
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
As user is logged-in the session should be maintained till logged-out, which means though the User hard navigates to the root URL (actually no one does it), website should be able to land user in https://osc-hub.herokuapp.com/dashboard
Additional context
When Logged-in, even opening the new tab in same browser, the root URL "https://osc-hub.herokuapp.com/" should be able to land the user in "https://osc-hub.herokuapp.com/dashboard" when proper session is maintained.
To receive data from the Speaker model and display it in the speaker.html
file.
SMTP Authentication seems to be unresolved as the users are unable to send a mail to the OSC's ID.
I suspect that the issue lies with the Google API not providing permission to send mails from the user's account.
However, this needs to be checked on, in the Django backend as well, in case it's an issue on both sides.
Originally posted by @dat-adi in #60 (comment)
user login required for
profile view
dashboard view
Link urls.py in oschub
The SECRET_KEY for this project is currently exposed, and is vulnerable.
Creation of .env
file with the keys before sending off to production.
In charge of this issue : @dat-adi
I'm planning to add docker support to osc hub so that oschub is scalable and easy to deploy.
As per the currently designed UI, the event_list.html
template (displays all the events) handles the event name and description below it.
So as per models created in the backdev
, the event.eventDescription
created over there looks good only in event_detail.html
event_list.html
max_length=60
, should be between 45 to 60.requirements for user profile stats
Is your feature request related to a problem? Please describe.
There is an ongoing discussion on the potential development of a credit analysis software on the osc-eb repository.
In order for the data of each user on OSCHub to be sent for credit analysis, we will require a method, may it be REST APIs, or a simple connection to the Sheets API with an indexing for each participant.
Describe the solution you'd like
Look into the features and potential upgrades that can be made in order to build an API that would allow for Data to be sent from OSCHub with the least number of issues and good scalability.
Describe alternatives you've considered
Alternatives that have been considered are a script that parses the data that we have stored on Google Sheets rather than OSCHub.
the event_detail.html does not display the event details
Is your feature request related to a problem? Please describe.
Add in a feature to set up reminders for upcoming events on Google Calendars. Currently, there is no reminder system in place and I don't want to miss out on OSC events. OSC <3
Describe the solution you'd like
It'll be useful if we could get an option to integrate Google calendars onto the application to set reminders for upcoming events.
Describe alternatives you've considered
Sadly none.
Additional context
Well, here's the API -> https://developers.google.com/calendar/api.
Add in the Event name, time and set a reminder 30 minutes prior to the event start time.
Tasks to achieve:
The new merge from the frontdev2
branch to the backdev
branch caused a few changes in the structure of the allauth functionality.
The signup is not visible and needs to be looked into, this might be related to the settings and configuration of the allauth application.
The PRs that changed the existing functionality are these ones, #25 #26
As proposed by @Sudhee-bsp, conversion of the existing ImageFields in our Django Models into URL Fields is a feasible solution to the data management issues.
The refactoring of these fields will allow for the following changes in the roadmap,
MEDIA_ROOT
, as the images that exist on the webpages are essentially just links which are displayed from an external source, options including Google Drive, and Imgur.Files and applications that need to be worked on,
eventreg:models
eventreg:templates
Create an issue and link it to kanban.
Registered events of user must dispalyed in 3 catagories in dashboard
1)current
2)upcoming
3)past
Closing this issue will finish most of the backend-database stuff
All the events which were added from the admin interface (database) should be listed out in the event_list.html
Describe the bug
This bug can be fixed by replacing the email id with osc mail id. The bug lets the code to send the feedback message to a developer's test email rather than sending it to the club mail id.
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
The feedback form in about.html will not be sending any feedbacks to the osc instead all the feedback will be sent to the already existing developer's test email.
Screenshots
Screenshot of the line that needs to be fixed.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Changes made,
settings.py
has been updated to utilize email for authentication.are done with the commit 81eee47
email
in the User Model.firstname
in the User Model.lastname
in the User Model.Describe the bug
We receive an error django.db.utils.OperationalError: no such table: accounts_maillist
due to maillist trying to access a table that doesn't yet exist upon first build.
A fix to this issue may be attempted by utilizing the try-except clauses.
To Reproduce
Steps to reproduce the behaviour:
python manage.py makemigrations
.Expected behavior
The Django Table for maillist should be created without any error popping up.
Additional context
The current workaround to this error is to,
accounts/admin.py
.python manage.py makemigrations
An example worth looking into https://hacktober-fest-2020.vercel.app/.
Changes made in the eventreg
application,
urls.py
to work with Class Based Views.eventdata_list.html
file, to display events in List format with an appropriate hyperlink directing to the event detail view.event_detail.html
.are done in commit df79057
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.