dewv / nlcattendance Goto Github PK
View Code? Open in Web Editor NEWAttendance tracking for the Naylor Learning Center at Davis & Elkins College
License: MIT License
Attendance tracking for the Naylor Learning Center at Davis & Elkins College
License: MIT License
Staff create form in views need to be made.
How do we keep track of how long the user has been in the system? How does the timer work? @tydingsl
Initial code does not distinguish fall vs spring sports. Need to do that.
Various input/edit forms are incorrectly requiring the user to provide values for various attributes. We need a systematic check of all of them. Database models can generally be used to determine what is truly required, CONTRIBUTING.md might help, but ask if uncertain.
@smattingly @codybroyles @tydingsl
When I run npm run test
I have a sintax error on this Test of the student model. I have been looking at it but I couldn't find a solution.
nlcAttendance/test/models/Student.js
Line 92 in 8443181
Currently there are a large number of dependencies in the 'package.json' that we do not know if we are using or not. These dependencies need to be assessed for their use and removed if they are unused.
The populateOne
helper should check to see if the model passed to it defines a postPopulate
afterPopulateOne
function, and if so, call it.
@codybroyles Note name change, to follow Sails lifecycle hooks after/before and use full name of populateOne
Implementing attribute vallidations in our current models.
#41 is the precursor to this. The information from this visit should be translated to a spreadsheet via a new page.
The Visit component must support creating new records (known as a "check in"). So, the visit folder will contain createForm.html, named in anticipation that the RestController can be used.
In reference #15 and #23 ...really this will be used for the entire system since it runs in kiosk mode.
https://github.com/dewv/nlcAttendance/blob/master/CONTRIBUTING.md#student-check-in-check-out
Should include links to all staff forms: edit form, visit list, visit spreadsheet, and register browser
Get the student profile form from nlc_attendance repo (special branch) and bring it into this repo.
Also put nlc_attendance repos pageTop and pageBottom templates into the sails layout file.
Staff update form in views needs to be made
Creation of projectDocs folder with general guidelines for management.
The Application is growing rapidly and a quick update on how it looks from an operations perspective would yield valuable insight from a source other than the developers.
Just username, password, and a submit button
Make the application look more professional using CSS
Create the editform for Staff. Use the student editform in the API as a guideline.
Student update form in views needs to be made
The view for staff to see what the visit model has collected
Refer to CONTRIBUTING.md for more info.
Fix visit view portion of the rest controller
Create an EJS webpage that displays whatever string is delivered to it.
Currently Fall Sports, Spring Sports, and Majors are added by code on the server which requires Dev-Ops to add any new sports or majors to the system. By adding simple forms, the customers can add their own entries without consulting Dev-Ops.
Also the customer should be able to flag unsupported options for each of these tables.
I have run into a issue that I can not seem to fix. @smattingly If you could take a look at this on the fallStaff branch. The following error occurs when loading the list and refers to the populate call in the listRequest() function of the REST controller.
OperationalError [AdapterError]: Unexpected error from database adapter: Could not find a primary key for a record. Perhaps it wasn't selected in the query. The primary key was set to: id and the record returned was: RowDataPacket {
studentId__createdAt: 1567805571514,
studentId__updatedAt: 1567805571514,
studentId__id: 2,
studentId__username: '[email protected]',
studentId__firstName: 'FIRSTNAME2',
studentId__lastName: 'LASTNAME2',
studentId__academicRank: 'Sophomore',
studentId__residentialStatus: 'Commuter',
studentId__forceUpdate: 1,
studentId__majorOne: 2,
studentId__majorTwo: 3,
studentId__fallSport: 2,
studentId__springSport: 2
}
at Object.listRequested [as rest/listrequested] (/home/broylesc/csci/nlcAttendance/api/controllers/RestController.js:18:35)
at /home/broylesc/csci/nlcAttendance/node_modules/sails/lib/router/bind.js:236:53
at routeTargetFnWrapper (/home/broylesc/csci/nlcAttendance/node_modules/sails/lib/router/bind.js:392:9)
at /home/broylesc/csci/nlcAttendance/node_modules/sails/lib/router/bind.js:455:14
at Layer.handle [as handle_request] (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/layer.js:95:5)
at next (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/layer.js:95:5)
at /home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/index.js:281:22
at param (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/index.js:354:14)
at param (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/index.js:365:14)
at Function.process_params (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/index.js:410:3)
at next (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/index.js:275:10)
at next (/home/broylesc/csci/nlcAttendance/node_modules/express/lib/router/route.js:127:14)
at module.exports (/home/broylesc/csci/nlcAttendance/api/policies/isAuthorized.js:74:75)
at processTicksAndRejections (internal/process/task_queues.js:85:5) {
In informal conversation, student athlete(s) expressed interest in seeing their total visit time (for the week?).
Might be as simple as putting total in all student page headers, or as extensive as new list pages.
Hold for research and client vetting.
404 and 500
Text box on check in page reaches out of the container when the window is resized with W3.css changes.
Student Create form in the views needs to be made.
The Visit component must support editing existing records (known as a "check out"). So, the visit folder will contain editForm.html, named in anticipation that the RestController can be used.
Using the information from issue #7 and any further data deemed important, build the database for us to use with Sails.js for nlc Attendance.
Look through the old nlc2 repository for useful information that can be translated into sails.js for the new repository nlcAttendance. Compile it into a single document for reference.
What are the commands to test our code with mocha?
Integrate with college's AD directory
Talk with clients:
if we release v2 between semesters AND they are okay with old data being archive only
then there is no need to convert current schema to new Sails schema
else
we need scripts to move data contents of current schema to new Sails schema
using CONTRIBUTING.md, create the model file for Visits (the login and logout model)
on the master branch.
I will fix right away, but am documenting in case others encounter it.
Declare useful information that is relevant to our usage of Sails.js. For instance: starting sails, closing sails, how the models plug into sails, etc. Write documentation for quick lookup specifically for our organization.
@smattingly @codybroyles I have this error when I try to run Mocha.
I did:
npm install
npm install -g npm-install-peers
npm run mocha
And then I have this long error message:
> [email protected] mocha /home/ubuntu/workspace/nlcAttendance
> _mocha ./furl/furlsails/test/lifecycle.js ./furl/test
/home/ubuntu/workspace/nlcAttendance/furl/furlsails/test/lifecycle.js:1
(function (exports, require, module, __filename, __dirname) { let sails = require('sails');
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at /mnt/shared/lib/node_modules/mocha/lib/mocha.js:219:27
at Array.forEach (native)
at Mocha.loadFiles (/mnt/shared/lib/node_modules/mocha/lib/mocha.js:216:14)
at Mocha.run (/mnt/shared/lib/node_modules/mocha/lib/mocha.js:468:10)
at Object.<anonymous> (/mnt/shared/lib/node_modules/mocha/bin/_mocha:403:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] mocha: `_mocha ./furl/furlsails/test/lifecycle.js ./furl/test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] mocha script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2019-02-05T19_02_08_008Z-debug.log
Instead of a full page menu, maybe visit list is default staff page, and all staff pages have "hamburger" drop menu that works like this.
A very simple form for registering a browser for nlc
Get the staff profile form from nlc_attendance repo (special branch) and bring it into this repo.
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.