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

7 feature 4 forming user groups task creation #32

Merged
merged 28 commits into from
Nov 22, 2022

Conversation

sshmuylovich
Copy link
Contributor

@sshmuylovich sshmuylovich commented Nov 19, 2022

This should be all entities for my feature basically complete. Will be pushing use cases and then UI soon.

sshmuylovich and others added 9 commits November 1, 2022 17:10
…nd declinedteammates. Added get and set methods for leader. Changed setRecurring so that recurring could be changed as well as frequency. Added java doc comments to all methods.
…eceiver so that it is just one Student User instead of an ArrayList of Student Users. Modified constructor accordingly.
…task-creation' into 7-feature-4-forming-user-groups-task-creation
@sshmuylovich
Copy link
Contributor Author

Also, does any one know why workflow is failing?

@sshmuylovich
Copy link
Contributor Author

Also not 100% whether my methods are correctly public vs protected so if any one has any strong opinions because of how their feature interacts with a method please let me know.

Copy link
Contributor

@yyutiw yyutiw left a comment

Choose a reason for hiding this comment

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

This is my bad because I keep noticing issues in Task, but just delete the 3 abstract methods and everything should match again.
Aside from that your implementation looks good to me!

src/main/java/entities/CollaborativeTask.java Show resolved Hide resolved
src/main/java/Entities/CollaborativeTask.java Outdated Show resolved Hide resolved
src/main/java/Entities/CollaborativeTask.java Outdated Show resolved Hide resolved
private ArrayList<StudentUser> pendingTeammates;
private ArrayList<StudentUser> declinedTeammates;
private StudentUser leader;

Copy link
Contributor

Choose a reason for hiding this comment

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

For collaborative scheduling a deadline instance variable is needed as well. So like: private LocalDateTime deadline. This would also need a getter method and I think you have to add it to your constructor since the deadline can't have a default value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added two new constructor and getter/setter methods for new attribute.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you ever need a Collaborative "Test" or "Assignment"? I am thinking of making CollaborativeEvent a subclass of Event and CollaborativeAssignment a subclass of Assignment. Let me know what you think of that idea @yyutiw @alyson647

Copy link
Contributor

@alyson647 alyson647 Nov 20, 2022

Choose a reason for hiding this comment

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

@sshmuylovich I'm not too sure about the idea to be honest. I viewed CollaborativeTask as separate to Test, Assignment, Event, and that it was its own thing since in our CRC cards it seemed like that. So, I don't know but I think that might complicate things a bit if we decide to make other entities like CollaborativeEvent, etc. It would also impact the functionality of my use case since I heavily rely on CollaborativeTask.

Copy link
Contributor

Choose a reason for hiding this comment

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

@sshmuylovich @alyson647 Yeah, I'd say collaborative tasks could be something like "work on assignment" or "study for test" anyways so splitting them up further would probably overcomplicate things

jltng
jltng previously requested changes Nov 20, 2022
Copy link
Contributor

@jltng jltng left a comment

Choose a reason for hiding this comment

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

I don't think I use any of these entities, but yeah as mentioned above, necessary getters and setters would have to be public. Other than that, packages should be entities instead of Entities. Looks good and love the documentation!

@sshmuylovich
Copy link
Contributor Author

sshmuylovich commented Nov 20, 2022

Note that I am showing an error for Collaborative Task at the moment because my version of Task still has edit, delete, and save as abstract classes that I no longer include in Collaborative Task as per Yuti's comments.

yyutiw
yyutiw previously approved these changes Nov 22, 2022
Copy link
Contributor

@yyutiw yyutiw left a comment

Choose a reason for hiding this comment

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

Looks good overall

src/main/java/entities/CollaborativeTask.java Show resolved Hide resolved
jltng
jltng previously approved these changes Nov 22, 2022
Copy link
Contributor

@jltng jltng left a comment

Choose a reason for hiding this comment

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

Looks good!

@sshmuylovich sshmuylovich dismissed stale reviews from jltng, yyutiw, and alyson647 via f88b795 November 22, 2022 01:10

import java.util.ArrayList;

public class internalUserList {
Copy link
Contributor

@jltng jltng Nov 22, 2022

Choose a reason for hiding this comment

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

I believe @CC-3636 has this file as well as UserWhisperer removed (she no longer uses these entities anymore). Double check with her though

Copy link
Contributor

Choose a reason for hiding this comment

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

correct, I removed both UserWhisperer and internalUserList because I no longer use them

yyutiw
yyutiw previously approved these changes Nov 22, 2022
Copy link
Contributor

@CC-3636 CC-3636 left a comment

Choose a reason for hiding this comment

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

I deleted UserWhisperer -- the create method is now a part of UserFactory. I also got rid of internalUserList because we are using an external User Database.

jltng
jltng previously approved these changes Nov 22, 2022
Copy link
Contributor

@jltng jltng left a comment

Choose a reason for hiding this comment

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

Looks great!

yyutiw
yyutiw previously approved these changes Nov 22, 2022
@sshmuylovich sshmuylovich dismissed stale reviews from yyutiw and jltng via 18c5927 November 22, 2022 02:49
@sshmuylovich sshmuylovich requested review from yyutiw and jltng November 22, 2022 02:54
Copy link
Contributor

@CC-3636 CC-3636 left a comment

Choose a reason for hiding this comment

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

thanks for making the changes I requested :)

@sshmuylovich sshmuylovich merged commit c75d476 into main Nov 22, 2022
@sshmuylovich sshmuylovich linked an issue Nov 22, 2022 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature 4 - Forming User Groups & Task Creation
5 participants