Giter Site home page Giter Site logo

cmp's Introduction

Okorin

Directory where i put public stuff somewhat?

cmp's People

Contributors

maxylan avatar okorin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

milaneyia

cmp's Issues

Integration of events into the database

So it seems like we have the basic User/Role/Cycle tables configured for the most part.
Obviously we would also want to store event data here along with contest entries, right?
Proposed implementation ER-graph:

Feedback is welcome. It's the first real database I designed. I wanted to separate contests and discussions out of events due to how major they are, and they all have their own unique content anyway. This lets us still create events that are neither contests nor discussions. Event_has_Gamemode refers to one event being able to support multiple gamemodes, but not necessary all of them. Event_Participants is simply a table for everyone who participated in the event somehow, including entrees, judges, organizers, discussion hosts etc. which are all elements of the EventRole table.

EventRole is reserved for roles that are strictly event-based and don't require all the field information that a generic Role does. It's possible that we could just combine these if this distinction is deemed unnecessary, though. A single event participant can be both a judge for, say, osu!mania and an entree for osu! at the same time, or a guest difficulty creator at the same time, which is why including it as a foreign key in Event_Participants is necessary. Some fields for example in User can be missing or have an incorrect Not Null check value, but don't pay attention to those as I wasn't clear on what to make of those in the initial prototype version yet.

Real-time feed of "Beatmap Events"

Possibly a hidden container only visible when hovering your mouse over a button/box in the top or left/right side of the screen.
Will contain a feed of Qualifications, Disqualifications and Ranking beatmaps.

This one query will fail if the hierarchy is taken by another role

RoleController@update: check will succeed and update will fail if the hierarchy level is already taken as is by another role because the DB field is unique

also if it fails it'll just redirect to a blank page cuz it's only going to do something in the last line

public function update($id, Request $request) 
	{
		$role = Role::findOrFail($id);
		$this->authorize('update', $role);
		$request->validate([
			'name' => 'required',
			'description' => 'required',
			'color' => 'required|max:6',
			'hierarchy' => 'required',
		]);
		$role->name         = e($request->name);
		$role->description  = e($request->description);
		$role->color 		= e($request->color);
		$role->hierarchy    = e($request->hierarchy);
		if ($role->save()) return back();

	}

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.