This blog is about the work we have done and goals we have accomplished in the GSoC'22.
Let’s Dive in…
CircuitVerse is a Digital Logic Simulator on web. It is an educational tool for students interested in electronics to simulate and make circuits on their browser.
This project aimed to improve the main platform by integrating new features. So intially the project consist of 6 features but after mentor discussion we have added more features into the project context.
The features we have successfully implemented:
This feature enables user to authenticate using thier gitlab account in CircuitVerse. For achieving this, I used
omniauth-gitlab gem. Initially, I faced issues because of the old version of omniauth gem in CircuitVerse, so I first update the gem along with it’s dependencies and configurations. After omniauth update, gitlab authentication works smoothly. I also updated the documentation to integration application for config.
SSO stands for Single-Sign On. I have used
devise_saml_authenticatable gem. For the testing I used Okta IDP. I faced issues during integration but as always mentor guided me the way, and I was able to solve it.
This feature enables group to have multiple mentor. There will be 1 primary mentor(owner), and primary mentor can add mentors, make member a mentor and vise-versa. Mentors can grade, CRUD, and reopen assignments. Ruturaj has already raised a PR for it and had implemented mot of the stuffs, but there is still need to rafactor, cleanup and stimulus JS migration.
Initially the embed feature was basic. This feature advance it by providing the customization options. When a user click on embed button, a popup will be displayed with the options to customize your embed. The customization options:
Kartikay already have made a PR with the integration for Iframe width & height, border with & color. I worked on integrating advance options, revamp and cleanup.
We already have element restrictions for the assignment i.e., to restrict the group members with the use of elements for the Project. But we have got quite a few complaints from professors that CircuitVerse allows cheating easily. For example, users can easily copy/paste any public circuit. They can give collaborators access to their own circuit and copy-paste etc. So it has been requested by professors to disable this feature. This PR enables that feature into CircuitVerse.
Notifications are very important aspect, we were using
activity_notification gem before, but it makes the page lacky and the gem is not maintained any more, so we decided to shift to new gem, and we found
noticed gem for it.
Noticed gem is really very easy to use and had really cool and amazing features. You can learn about the noticed gem here.
We have covered 2 events for notification:
We have implemented a section in the navbar to get quick access to your notification.
Notification page for a respective user shows all the notification for the user logged in. You can mark a notification as read by clicking to it, or you can click mark_all_as_read to mark all notifications as read.
The noticed implementation was comparatively easy, but the major challenge was to migrate the old data under the
activity_notifications as both gem have different implementation, different schemas and methods. So we finally made a data migration file in which we made a script to migrate the data from
notification table to
We also reimplemented the web push notification, for which the PR is under review! There are some production issue we are facing, we are trying to solve it!
Notification api is used to provide the different endpoints for the Mobile-app.
To get all the notification for current authorized user.
To mark a particular notification as read.
To mark all notifications as read.
We initially had some more features in the bucket list:
We will research and will work on these goals after gsoc!
By far we have accomplished 7/9 goals and that was under 12 weeks. We have man things lined up next.