-
Notifications
You must be signed in to change notification settings - Fork 52
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
Feature/out of office #311
base: develop
Are you sure you want to change the base?
Conversation
Add js file to handle the radio box Add route to profile.py Add modal to profile.html Add run main for pycharm
and add out of office logic add out of office to event.py
Codecov Report
@@ Coverage Diff @@
## develop #311 +/- ##
===========================================
- Coverage 98.77% 94.32% -4.45%
===========================================
Files 64 77 +13
Lines 2849 3417 +568
===========================================
+ Hits 2814 3223 +409
- Misses 35 194 +159
Continue to review full report at Codecov.
|
app/internal/out_of_office.py
Outdated
|
||
def update_out_of_office(out_of_office_data_from_req, | ||
out_of_office_data_from_db): | ||
activate_out_of_office = '1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain, please :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe could you please explain this line? why you set always '1'?
Great job! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work overall
app/internal/event.py
Outdated
@@ -73,7 +73,8 @@ def find_pattern(session, event): | |||
|
|||
def get_messages(session: Session, | |||
event: Event, | |||
uninvited_contacts: Set[str]) -> List[str]: | |||
uninvited_contacts: Set[str], | |||
out_of_office_users: List[Tuple[str, str]]) -> List[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could it be none?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what did you mean?
activate_out_of_office = '1' | ||
user = session.query(User).filter_by(id=1).first() | ||
|
||
# TODO: Check if the user exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could check it with an existing function.
And add modals to profile html
…endar into feature/out-of-office Resolve conflicts
Hey,
This feature allow the users to set "Out of office"