Git Product home page Git Product logo

dbms-backend's People

Contributors

atosh502 avatar dineshdb avatar

Watchers

 avatar  avatar  avatar

Forkers

atosh502

dbms-backend's Issues

Protect api with JWT.

Currently, we don't have any guard for API. We need to protect it using JWT before it is deployed. I'm opening this issue as a todo list.

eventSection and eventSectionRoom didn't update.

So after a POST request to /organizers/{organizerId}/eventInfo with default organizerId of 17, and request body of

{
	"event": 
			{
		        "eventName": "Big Data Workshop",
		        "eventDescription": "An introduction to big data and its application",
		        "expectedNumberOfParticipants": 60,
		        "eventDurationInDays": 2,
		        "eventStartDate": null,
		        "eventEndDate": null,
		        "accepted": 0,
		        "admin": null,
		        "organizer": null
		    },
	"roomMatrixList":
			[
				{
					"year": 2018,
					"month": 6,
					"day": 25,
					"matrix":[	[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false]
							]
				},
				
				{
					"year": 2018,
					"month": 6,
					"day": 26,
					"matrix":[	[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false],
								[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false]
							]
				}
			]
}

the tables of eventSection and eventSectionRoom weren't updated.

  • This was because of bitwise or '|' used in atLeastOne() function in line 154 of OrganizerController.java file. Also the code there was
    result = false | ma[i]
    which should have been
    result = result || mat[i]
    This caused the inner if condition in line 96 of the same file to be never executed resulting in no updates in the above two tables.

Add CORS

The requests are being blocked due to CORS. we will need to implement CORS.

Convert to standard date format

For now the date is passed as an object:

{
"year":2018,
"month":6,
"day":28
}

make use of standard date format for passing 'dates' instead of custom objects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.