Project

General

Profile

Feature #7719

Add visual access dates and coach access dates to sessions creation

Added by Yannick Warnier over 4 years ago. Updated over 4 years ago.

Status:
Feature implemented
Priority:
Normal
Assignee:
Category:
Database & API changes
Target version:
Start date:
27/05/2015
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

As developed in a separate branch for icpna, the sessions should have six dates in total:

  • student access start date (this is the current session start date)
  • student access end date (this is the current session end date)
  • coach access start date (this is the current session start_date modified with the "days before" setting)
  • coach access end date (this is the current session end_date modified with the "days after" setting)
  • session visual start date (this is the start date as shown visually in sessions lists - by default the same as the student access start_date)
  • session visual end date (this is the end date as shown visually in sessions lists - by default the same as the student access end_date)

Ideally, these start/end date should all be datetimes (for more precise control) although I don't think we need more than a precision of an hour)

The current global setting for default coach_access_start_date and end_date should be taken into account when auto-generating the coach start and end date on the basis of the student start and end date).

These 6 options should all be an alternative to the session_duration attribute, which doesn't allow for any specific dates. In this case, the students get a calculated access date, and the tutor has always access to the session.

Web services should also be modified to accept multiple dates (optionally), in a way that lets previous webservice calls still work but that enables the optional setting of more dates.

If only student access dates are set (they should be the first to be shown), then all other dates are set to these values by default.

Associated revisions

Revision ce57926e (diff)
Added by Julio Montoya over 4 years ago

Add new dates in session table see #7719

Revision 0fe954e8 (diff)
Added by Yannick Warnier over 4 years ago

Switch all session.date_start and date_end to session.access_start_date and access_end_date - refs #7719

Revision 03910a35 (diff)
Added by Yannick Warnier over 4 years ago

Fix issues with display_start/end_date for sessions - refs #7719

Revision 9808f466 (diff)
Added by Yannick Warnier over 4 years ago

Change session date fields labels - refs #7719

Revision 50a50668 (diff)
Added by Julio Montoya over 4 years ago

Fix session list see #7719

Revision 2733cbb1 (diff)
Added by Julio Montoya over 4 years ago

Fix session dates see #7719

Revision 91d9783d (diff)
Added by Julio Montoya over 4 years ago

Fix session_list dates see #7719

History

#1

Updated by Yannick Warnier over 4 years ago

  • Description updated (diff)
#2

Updated by Yannick Warnier over 4 years ago

  • Description updated (diff)
#3

Updated by Julio Montoya over 4 years ago

These 6 options should all be an alternative to the session_duration attribute, which doesn't allow for any specific dates. In this case, the students get a calculated access date, and the tutor has always access to the session.

session_duration depends in a start date.
I suppose this date is "student access start date". By default will be the creation date.

#4

Updated by Julio Montoya over 4 years ago

Ah yes, I remember that session duration it was based in the user ...

#5

Updated by Yannick Warnier over 4 years ago

  • Status changed from Assigned to Needs testing
  • % Done changed from 0 to 90

There has been some confusion on my side, I think: I thought you were done with this task, so I started making a few changes and in the end I spent hours configuring the whole change.
I believe most of it is done now. The only things to review is if inserting a session without dates works.

#6

Updated by Julio Montoya over 4 years ago

Yannick Warnier wrote:

There has been some confusion on my side, I think: I thought you were done with this task, so I started making a few changes and in the end I spent hours configuring the whole change.
I believe most of it is done now. The only things to review is if inserting a session without dates works.

Exactly. I still have some changes to do. I just sent my changes now even if they broke some parts to avoid more confusion.

#7

Updated by Yannick Warnier over 4 years ago

I think it's working now. Julio, what changes were you still about to send?

#8

Updated by Julio Montoya over 4 years ago

  • Assignee deleted (Julio Montoya)

I already sent all my changes and I was continuously fixing all the old date values.

#9

Updated by Yannick Warnier over 4 years ago

  • Status changed from Needs testing to Feature implemented
  • Assignee set to Julio Montoya
  • % Done changed from 90 to 100

OK, I also think we can close this.

Also available in: Atom PDF