GithubHelp home page GithubHelp logo

citizensciencecenter / backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 2.35 MB

OpenAPI server using the @zalando Connexion framework for the Citizen Science Center

Home Page: https://citizenscience.ch

License: Apache License 2.0

Python 82.30% Dockerfile 0.66% Mako 0.69% Makefile 1.63% Shell 0.40% TSQL 14.13% Crystal 0.19%
backend docker openapi

backend's People

Contributors

dependabot[bot] avatar encima avatar gitter-badger avatar marcta avatar

Watchers

 avatar

Forkers

gitter-badger

backend's Issues

User handling upon creation

If a username is not set (as just an email is required by default), then this should be set by the backend to save handling this in the various frontend clients

username check and profile save

File: BasicProfileEditor.vue
Username check
checkUsername() {
let query = {
'select': {
'fields': [
'*'
],
'tables': [
'users'
]
},
'where': [
{
"field": 'username',
'op': 'e',
'val': this.form.username
}
]
};
this.$store.dispatch('c3s/submission/getSubmissions', [query, 1] ).then(res => {
console.log('username checked');
console.log( res );
if( res.body.length > 0 ) {
// email already registered
this.errors.username = true;
}
});
},
Error:

Profile Save

save() {
  console.log( 'save user ');
  this.$store.dispatch('c3s/user/updateUser', [ this.currentUser.id, this.getUserObject() ] ).then(r => {

    console.log( r );
    this.$store.dispatch('c3s/user/validate').then(v => {

      console.log( v );

    });

  });
}

Error:

[Proposal] Rename of projects

Projects and activities do have a lot in common, linguistically.
Possibly renaming projects to team or group but allow activities to be created outside of a group as well?

ID referencing in URLs

In clients, referencing models by ID can result in extra calls and make them harder to read.
Proposal to use names as the ID, or composite with owners.

Implement project and task deletion

Tasks and projects can be deleted but this needs to provide the warning that all submissions and media relating to them will also be deleted immediately

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.