Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Classdb-yaddayadda #45

Open
3 of 12 tasks
NiloCK opened this issue Jan 7, 2019 · 2 comments
Open
3 of 12 tasks

Create Classdb-yaddayadda #45

NiloCK opened this issue Jan 7, 2019 · 2 comments

Comments

@NiloCK
Copy link
Owner

NiloCK commented Jan 7, 2019

methods of registering collections of users as students of one (or more) users who are instructors, and for facilitating async and sync information exchange.

non-domain requirements:

  • Creating a classroomdb-${id} database
  • Messaging system based on user-sync on classroomdb
    • (This is a domain problem too, particularly when coordinating interventions)
    • (partially implemented - need to look back to better inform status)
  • allow for 'invitation' system (specify username?)
  • joining system via joincodes

domain requirements:

  • content assigning
    • assign exercises by course or by tag
    • assigned content filters by the configured age of the students
    • differentiation (generally automated, but allow explicit flag of outliers)
  • global reporting of problem areas & pre-req deficiencies
  • peer grouping annotated w/ problem areas & relevant context
  • jit peer instruction
    • assigned competence
NiloCK added a commit that referenced this issue Jan 28, 2019
NiloCK added a commit that referenced this issue Jan 28, 2019
NiloCK added a commit that referenced this issue Jan 29, 2019
NiloCK added a commit that referenced this issue Feb 12, 2019
NiloCK added a commit that referenced this issue Feb 12, 2019
@NiloCK
Copy link
Owner Author

NiloCK commented Feb 19, 2019

An alternate method for checking auth cookies. May be faster, if less clean, than Nano cookie-fed db creation and session check. Possible future benchmark.

    const nXML = require('xmlhttprequest').XMLHttpRequest; // npm module. not the default xmlhttprequest

    return new Promise<couchSession>(function (resolve, reject) {
        const authXML = new nXML();
        authXML.setDisableHeaderCheck(true);
        authXML.open('GET', 'http://' + couchURL + '_session', false);
        authXML.onload = function () {

            if (this.status >= 200 && this.status < 300) {
                resolve(JSON.parse(this.responseText));
            } else {
                reject({
                    status: this.status,
                    statusText: this.statusText
                });
            }
        }
        authXML.onerror = function () {
            reject({
              status: this.status,
              statusText: authXML.statusText
            });
          };
        authXML.setRequestHeader('Cookie', `AuthSession=${authCookie}`);
        authXML.send();

    })

@NiloCK
Copy link
Owner Author

NiloCK commented Feb 26, 2019

Next to do:

Work on "classrooms" page:

  • list current classes
  • display 'create class' button
  • display a joinCode input for joining classes

NiloCK added a commit that referenced this issue Mar 17, 2019
NiloCK added a commit that referenced this issue Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant