citizensciencecenter / backend Goto Github PK
View Code? Open in Web Editor NEWOpenAPI server using the @zalando Connexion framework for the Citizen Science Center
Home Page: https://citizenscience.ch
License: Apache License 2.0
OpenAPI server using the @zalando Connexion framework for the Citizen Science Center
Home Page: https://citizenscience.ch
License: Apache License 2.0
☐ Create
☐ List
☐ Search
☐ Retrieve one
☐ Delete
☐ Update
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
☐ Create
☐ List
☐ Search
☐ Retrieve one
☐ Delete
☐ Update
Currently, a project space is made for every new user created.
This should be modified so that users must register in order to create activities but can still take part in others
Use a decorator to confirm if the user is able to create a submission AND if they have submitted before
Specify roles in openapi spec and use access checks to ensure the user has those rights
Do not delete user but set all info to DELETED and set to inactive.
Question: Should their personal info (location or age etc) be kept or anonymised or deleted?
☐ Create
☐ List
☐ Search
☐ Retrieve one
☐ Delete
☐ Update
Allow anonymous users prefix to be specified in the config file and used, instead of defaulting to anon
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:
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?
☐ Create
☐ List
☐ Search
☐ Retrieve one
☐ Delete
☐ Update
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.
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
Potentially add a deleted state and prevent login
This requires Terms and Conditions to say that identifiable information would be kept as it may link to past projects
Maybe delete identifying info (email etc)
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.