I worked on the Open Event Organizer Server Project of FOSSASIA this summer. The idea was to build a server open for all event organizers to organize and create their own event and make it completely customisable. Initially I was tasked with implemeting the database and writing out the backend for the system. I implemeted many features like adding the Google and Facebook Login integration in our application. I also worked on adding the backend for the login and registration forms. Apart from this I also helped in setting up a permissions system which can be used for implementing admin and super-admin priveleges. In the end as the database work got a little less I also learnt and helped in improving the UI.I have also cleaned the code and configured codacy to suit our project. I have worked on the entire architecture of the project along with other team members and also worked on testing and bug f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_redirect (test_google_oauth.TestGoogleOauth) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/vagrant/tests/test_google_oauth.py", line 17, in test_redirect | |
self.assertTrue("Create" in self.app.get("/gCallback/?state=dummy_state&code=d/sfaummy_code").data) | |
File "/usr/local/lib/python2.7/dist-packages/werkzeug/test.py", line 778, in get | |
return self.open(*args, **kw) | |
File "/usr/local/lib/python2.7/dist-packages/flask/testing.py", line 108, in open | |
follow_redirects=follow_redirects) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tests.utils import OpenEventTestCase | |
from tests.setup_database import Setup | |
from open_event import current_app as app | |
from oauthlib.oauth2 import WebApplicationClient | |
from tests.object_mother import ObjectMother | |
from open_event.helpers.data import save_to_db | |
class TestGoogleOauth(OpenEventTestCase): | |
def setUp(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception on /admin/login/ [GET] | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request | |
rv = self.handle_user_exception(e) | |
File "/usr/local/lib/python2.7/dist-packages/flask_cors/extension.py", line 188, in wrapped_function | |
return cors_after_request(app.make_response(f(*args, **kwargs))) | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception | |
reraise(exc_type, exc_value, tb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+------------------+-----+ | |
| features|label| | |
+------------------+-----+ | |
| [1.9643, 4.5957]| 1| | |
| [2.2753, 3.8589]| 1| | |
| [2.9781, 4.5651]| 1| | |
| [2.932, 3.5519]| 1| | |
| [3.5772, 2.856]| 1| | |
| [4.015, 3.1937]| 1| | |
| [3.3814, 3.4291]| 1| |
- Added new XDR support for Soroban constructors which allows a contract to run custom initialization logic atomically when it's first created. You can read more about this change in CAP-58. The following changes are introduced:
- A new special contract function
__constructor
that may only be called by the Soroban host environment. The environment will call__constructor
function if and only if the contract is being created from a Wasm exporting that function. - Introduce a new host function
create_contract_with_constructor
in Soroban environment that allows constracts to instantiate other contracts with constructors. - Introduce a new
HostFunction
XDR variantHOST_FUNCTION_TYPE_CREATE_CONTRACT_V2
that acts in the same way asHOST_FUNCTION_TYPE_CREATE_CONTRACT
, but also allows users to specify the constructor arguments. - Introduce a new
SorobanAuthorizedFunction
XDR variant `SOROBAN
- A new special contract function