sschulze1989 / irleagueapicore Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
In order to determine which races a driver did score or not score based on the Point System Filters this information should be added to the standings rows.
Load the results for a single session from the iracing API given the subsession id
Add option to configure automatic penalties that are applied when one or more conditions are fulfilled
Possible conditions
AddPenalties
from automatic configuration during result calculationReturn the information about the current league subscription if the requesting user has either the admin or organizer role:
currently all date times stored in the database are treated as UTC already.
However the dateTime column in the database has no information about the offset and so times read from the database are initialized as local and not utc times.
This leads to the times also not being properly serialized in the json response with the trailing Z
to mark as UTC time.
DateTime
objects as UTC date times.In order to be able to authenticate towards the iracing API the credentials need to be safely stored on the server and made accesible to the calling function at runtime.
Managing of payments and subscriptions will first start off manually and then be enhanced by an automated process later.
In order to manage subscriptions manually the API should be enhanced by admin methods to manage the subscriptions status of leagues.
As of now the Filters for results only work individually but are applied one after another on the same data set.
That is great for simple filtering but does not allow to combine conditios that are exclusive to each other.
Example:
Simple filter with non exclusive condition that works:
Exclusive condition that does not work:
Make the filters dependend on their order an the previous operation
remove
should behave as before and filter out any previous entries.keep
should keep any entry even if it was removed before.keep
is the first filter entry it should be as regarded as keep only
and remove all entries that are not marked as to keepCurrently the API will throw an Error when trying to upload a result from a team event.
This is because the backend is expecting a driver result row in the top level of the json session results but instead finds a team. The individual driver rows can be found one level deeper.
To enable the upload of team results the backend would need to check if it is a team result and then catch the individual driver rows one level below. Right now there it seems not required to save any data from the team result row directly because all of the information can be later taken from the individual driver rows.
Additionally the Teams need to be assigned from the teamId
or name
.
If a team does not yet exist it should be newly created.
If a team does exists its driver list should be updated according to the drivers in the result:
driver_results
fieldIRacingTeamId
field to TeamEntity
to identify which team from iracing is already createdA 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.