chaoss / chaoss/grimoirelab-hatstall

Control date overlapping in different enrollments

Open
#82 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
11
Forks
16
PR merge metrics
No merged PRs in 30d

Description

When two or more enrollments are added to a given profile, Hatstall should prevent or at least warn about overlapped start or end dates. I think it is logical that neither start or ending dates from the different enrollments overlap. Besides, this can cause that the affiliation data will not be properly updated in GrimoireLab dashboards.

For instance, let's imagine there is a profile with two enrollments:
* company: `IBM`
* start date: `1900-01-01`
* end date: `2017-03-25`
* company: `Microsoft`
* start date: `2017-03-25`
* end date: `2100-01-01`

With those values, Hatstall should control that there is an overlapping on `2017-03-25` and ask the user to change one of the two dates, to one day after or one day before that date (For instance, the **start date** for the second company would be `2017-03-26`).

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the enrollment date validation and its existing tests, then reproduce the IBM/Microsoft boundary case; done means overlapping start or end dates are prevented or warned about and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.