dropsintheocean / dih-webapp

Webapp for the volunteer management system
http://app.drapenihavet.no
0 stars 0 forks source link

Some can register two trips at the same time, while others cannot #328

Open essoen opened 7 years ago

essoen commented 7 years ago
  • I Januar skulle det ha blitt gjort en endring i systemet slik at frivillige ikke kunne ha flere turer registrert samtidig. Jeg ser at den funksjonen ikke fungerer. Det er noen frivillige som i nyere tid har kunnet opprette tur til to forskjellige dest. med kun en dag forskjell som ankomst. Jeg har forsøkt å legge inn to ulike turer med forskjellig tidspunkt fra min profil, men får beskjed om at det ikke går - mao er jeg litt usikker på hvorfor noen får det til og andre ikke. Kan du få ordnet slik at den funksjonen blir helt borte?
scbasma commented 7 years ago

So the current trip filtering system works in a way that prevents users from having two or more trips in some states simultaneously. These states are accepted, active or pending. So a user can not have two or more trips that both are in one of these states.

An occurence of events that would lead to an user having two trips registered at the same date is that the user submits a trip for review, gets it reviewed and the trip is then put in a state that is not accepted, active or pending. Then the user is free to register a new trip in any date range as far as I can see. If someone with priviliges then alters the state of the first trip back to one of active, pending or accepted the end result is that the user has two trips with either active, pending or accepted as its state. A user could also have two trips that are set to present, within the same date range. This is not possible without some kind of error by the administrators though. Also explains why only some users have this state, and the admin is not able to reproduce it.

essoen commented 7 years ago

Hm, that makes sense. I'll inform them and see what they say.