Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added start and end dates to users #11926

Merged
merged 10 commits into from
Oct 6, 2022

Conversation

snipe
Copy link
Owner

@snipe snipe commented Oct 6, 2022

This just adds a start date and end date to users and includes the ability to search/sort on those dates via API.

Screen Shot 2022-10-05 at 4 59 24 PM

Screen Shot 2022-10-05 at 5 08 47 PM

Screen Shot 2022-10-05 at 5 09 42 PM

Fixes FD-10911 and SC-9356

Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Copy link
Collaborator

@uberbrady uberbrady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like it could be a useful feature for a lot of people - and I love the idea that, eventually, we might even be able to take actions based on what's here - like if someone is past their end_date, and they have things assigned to them - then that might be something we need to handle, somehow. I had a couple of minor stylistic points I raised, but not enough to block the PR. Thanks for making this, and I can't wait to see what our users do with it!

app/Http/Transformers/UsersTransformer.php Show resolved Hide resolved
app/Http/Transformers/UsersTransformer.php Show resolved Hide resolved
app/Models/User.php Show resolved Hide resolved
@@ -343,6 +343,30 @@
</div>
</div>

<!-- start date -->
@if ($user->start_date)
<div class="row">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny teensy microscopic nit - can we indent the innards of the @if directive?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already merged that, but I did apply that indent directly to develop

@snipe snipe merged commit e9c6190 into develop Oct 6, 2022
@snipe snipe deleted the features/add_start_and_term_dates_to_users branch October 6, 2022 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants