Giter VIP home page Giter VIP logo

th-admin's People

Contributors

pythondave avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

alexistoye

th-admin's Issues

Admin note posted to incorrect url

Affects: Job Overview screen.

Can we please change the post url to save notes on this screen from /admin/service/process-application' to /admin/service/process-teacher'.

The request parameters will also need to be changed i.e. {teacherId: 123, adminNote:'bla bla bla'}

Originally I thought that score and notes given to candidates in this screen - were related to the job application. However on further discussions with AT - it was agreed that for admins the score and note are defined at the candidate level and not at the application level.

This effectively means that every time we open the score and/or comments box for a candidate - regardless the job application we are on - we will always see(and edit) a common score and note for the candidate.

This approach changes for school users where both fields are defined for candidates but at the job application level.

Please check with AT

Deprecate school names api method

Api method: http://pythondave.github.io/th-admin/2/0.4/scaffolding/api/default.html#/school-names

Please deprecate this method and include the school names data as a new property of: /admin/service/basic-lists.

School names records can be kept pretty much as they are now - but would be good to add the id attribute as well.

See proposed format for the school names property below:

"schoolNames": [
{
"id": 1,
"name": "School of Manuel"
},
{
"id": 2,
"name": "Ecole de Marissa"
}]

API tweak - teachers - get an array of teachers matching certain text strings + other criteria

http://localhost/th-admin/2/0.4/scaffolding/api/default.html#/teachers/2 (also applies to 1 and 3, which are almost identical to 2)

Current: { search: 'te', statusId: 4, limit: 5 }
Proposal: { search: 'te', statusId: 1, limit: 5, exclude: { jobId: 123 } }

The statusId change relates to #3 (i.e. we're changing the id which represents 'Approved' from 4 to 1)

The "exclude: { jobId: 123 }" addition is so that teachers attached to jobId 123 can be excluded. I'm suggesting this rather than simply "jobId: 123" to keep things more flexible for the future - e.g. we might want to include only teachers attached to jobId 123, or we might want to exclude in other ways.

Approaches for developing new public access web pages

Hi Otto,

I met with Alex today and this issue cropped up.

We've got a user story which is something along the lines of "As a non-logged-in user I need to be able to view information about a school...".

The relevant part of the user story for this discussion is the "As a non-logged-in user" bit.

In general, the question is what our approach for developing new public access web pages should/could now be - and in particular when there's an SEO element to the requirements.

I guess we knew this question was coming.

In case you're wondering about possibilities with angularjs, this is worth looking at: http://www.yearofmoo.com/2012/11/angularjs-and-seo.html

In any case, it'd be good to come up with our options.

What are your thoughts?

Cheers!
Ryan :)

Handling unauthorized requests

Applies to all API calls.

Most of the backend services we use in this area require user authentication - and this means that a 401 status is being returned when any of the pages in this project are requested.

Ideally we should intercept calls to the API methods and verify the response status.

If the response status is 401 - we should then redirect the user to the login page or something like:

if (response.status == 401){
document.location.href = config.loginUrl;
return;
}

Cover note hover functionality breaks if it contains single quote

When I hover over some application records - The cover note does not display.

Noticed a java script error -"Unterminated quote at column xyz" - seems to happen when single quotes are used in the coverMessage text.

See test case data sample below:

{"id":102,"teacher":{"id":8096,"fullName":"Heather Mortimer","profileUrl":"/teachers/129353","score":0},"job":{"id":966,"subject":"Not applicable","role":"Other Position","schoolName":"Park Lane International School","country":"Czech Republic"},"dateApplied":1369892357000,"coverMessage":"I would like to apply for this job because a small, personable school is the ideal situation in which to teach. My broad range of teaching and learning strategies fits well with the school's philosophy: using interactive, engaging lessons to help children think critically, work collaboratively and prepare them for an exciting future. "}

Invalid content/type passed in post submissions (passing undefined)

There is a bug in jobControllers.js - on function $scope.teachers - not passing the right content type.
Please replace "config.postConfig" with "config.requests.postConfig" in the controller actions affected.

I suspect this may be related to some recent refactoring of the config class.

Create version 0.1 of API design rules / guidelines

A suggestion based on some very productive discussions which were started in some other threads - namely #17 and #18.

In general, I think it makes sense to have some agreed rules / guidelines we can all refer to when designing (or reflecting on) the API.

This should help us: a) agree API additions/changes faster, and b) create a relatively consistent API.

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.