cougargrades / api Goto Github PK
View Code? Open in Web Editor NEW☁️ Serverless HTTP API for cougargrades.io
Home Page: https://api.cougargrades.io
License: MIT License
☁️ Serverless HTTP API for cougargrades.io
Home Page: https://api.cougargrades.io
License: MIT License
it's getting a little nasty
related to #8
In sample data see Banks, Lori D
When a document in upload_queue
fails to process, move it to upload_queue_backlog
instead of leaving it in upload_queue
.
This upload_queue_backlog
can be processed by:
upload_queue
for reprocessing.__backlogCount
which prevents infinite loopsPatchfile "merge" operations happen when no document exists. "merge" operations should silently fail if the document at the specific location doesn't exist.
I believe this is because of an oversight in the implementation made here: cougargrades/importer@8d5cb57
Here, the rows which contain no data (when parsing the CSV, an empty string ''
) are replaced with zero, which in turns brings the average down among other statistics.
A comprehensive fix will require updating the importer, types, and api codebases to explicitly support null
values instead of undefined
values.
This would save a lot of time and replace the need for the 2nd phase of Patchfiles.
Perhaps some default groups could be entirely implemented in the API instead.
Will be necessary for the @cougargrades/importer rewrite.
With Firebase auth being researched, users should have more granular permissions, similar to the behavior of "Tokens"
Notes:
Version in use as of posting: 0.0.42
Version 0.0.43 changes:
Courses.publication
Courses.publications[]
Version 0.0.44 changes:
Instructor.firstTaught
Instructor.lastTaught
Version 0.0.45-0.0.47 changes:
firestore.FieldValue
supportapi/functions/src/firestore/whenUploadQueueAdded.ts
Lines 106 to 120 in 8fbc9dd
notably for having read
and write
permissions if admin
claim is true
A 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.