-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
[11.0][mail_activity_done] add new module to keep activities that have been completed. #296
Conversation
f2ef8b8
to
d624a9c
Compare
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.
LGTM (details)
mail_activity_done/hooks.py
Outdated
mail_activity_type_id=activity.activity_type_id.id, | ||
) | ||
message |= record.message_ids[0] | ||
# ---- START OF PATCH |
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.
remove dead code
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.
I think he wants to let clear for reviewers where is the patch.
@@ -0,0 +1,73 @@ | |||
//-*- coding: utf-8 -*- | |||
//Copyright2018 Eficent <http://www.eficent.com> | |||
//License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
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.
AGPL or LGPL?
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.
should be LGPL
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.
LGTM
if not cr.fetchone(): | ||
cr.execute( | ||
""" | ||
ALTER TABLE mail_activity ADD COLUMN done boolean; |
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 happens if the table is empty but already has the column done
?
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.
If the column exists it won't enter the if clause and won't create the column, right?
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.
right 👍
please fix lints |
@hbrunn lints fixed |
thanks, now we only need tests |
In the tree view it is possible to add a different color for the activities done that allows to distinguish them from the overdue. Ex:
The definition in the mail module of this view adds colors according to its 'state'. If a color is not added to the 'Done' state, all activities will end up with the 'Overdue' color. |
@jbeficent @hbrunn |
@dajuayen I have added colors and other small improvements. Please feel free to contribute and add tests! :) |
@jbeficent Sorry for the question, but how can I contribute to the PR? I have tried to make a fork of your code and when I make the fork of 'social' your module does not appear to me. If I upload a commit with new development, I'm probably going to do a new PR and I do not think that's the right procedure. What should I do is a PR to your last commit? |
In order to contribute to myPR you have to clone my branch.
git remote add Eficent git://github.com/Eficent/social
git fetch Eficent
git checkout eficent-mail_activity _done -b Eficent/mail_activity_done
Then do your changes and push to you owr repo. Then push to your repo. From
there create a PR and set as target my repo and my current branch.
Is it clear?
El dom., 4 nov. 2018 12:40, Dajuayen <notifications@github.com> escribió:
… @jbeficent <https://github.com/jbeficent> Sorry for the question, but how
can I contribute to the PR? I have tried to make a fork of your code and
when I make the fork of 'social' your module does not appear to me. If I
upload a commit with new development, I'm probably going to do a new PR and
I do not think that's the right procedure. What should I do is a PR to your
last commit?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#296 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHU_Vv6_KIinvrvPD_WZ8VCEJ8LgWtjnks5urtJAgaJpZM4WIlDR>
.
|
Thanks for the response and the help.
I think I understand what you tell me, but:
```
git checkout eficent-mail_activity _done -b Eficent / mail_activity_done
```
so I think with
```
git checkout 11.0-eficent-mail_activity_done
```
It was enough.
I also wanted to tell you that for certain questions that may arise it
would be interesting that there was an issue related to this PR, what do
you think?
El dom., 4 nov. 2018 a las 13:13, Jordi Ballester Alomar (<
notifications@github.com>) escribió:
… In order to contribute to myPR you have to clone my branch.
git remote add Eficent git://github.com/Eficent/social
git fetch Eficent
git checkout eficent-mail_activity _done -b Eficent/mail_activity_done
Then do your changes and push to you owr repo. Then push to your repo. From
there create a PR and set as target my repo and my current branch.
Is it clear?
El dom., 4 nov. 2018 12:40, Dajuayen ***@***.***> escribió:
> @jbeficent <https://github.com/jbeficent> Sorry for the question, but
how
> can I contribute to the PR? I have tried to make a fork of your code and
> when I make the fork of 'social' your module does not appear to me. If I
> upload a commit with new development, I'm probably going to do a new PR
and
> I do not think that's the right procedure. What should I do is a PR to
your
> last commit?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#296 (comment)>, or mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/AHU_Vv6_KIinvrvPD_WZ8VCEJ8LgWtjnks5urtJAgaJpZM4WIlDR
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#296 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADmsM0sJIlI8VkPxXhFpYpnODDfg5TnVks5urtnpgaJpZM4WIlDR>
.
|
Just write on the PR your questions.
El dom., 4 nov. 2018 14:57, Dajuayen <notifications@github.com> escribió:
… Thanks for the response and the help.
I think I understand what you tell me, but:
`` `
git checkout eficent-mail_activity _done -b Eficent / mail_activity_done
`` `
so I think with
`` `
git checkout 11.0-eficent-mail_activity_done
`` `
It was enough.
I also wanted to tell you that for certain questions that may arise it
would be interesting that there was an issue related to this PR, what do
you think?
El dom., 4 nov. 2018 a las 13:13, Jordi Ballester Alomar (<
***@***.***>) escribió:
> In order to contribute to myPR you have to clone my branch.
>
> git remote add Eficent git://github.com/Eficent/social
>
> git fetch Eficent
>
> git checkout eficent-mail_activity _done -b Eficent/mail_activity_done
>
> Then do your changes and push to you owr repo. Then push to your repo.
From
> there create a PR and set as target my repo and my current branch.
>
>
> Is it clear?
>
>
> El dom., 4 nov. 2018 12:40, Dajuayen ***@***.***>
escribió:
>
> > @jbeficent <https://github.com/jbeficent> Sorry for the question, but
> how
> > can I contribute to the PR? I have tried to make a fork of your code
and
> > when I make the fork of 'social' your module does not appear to me. If
I
> > upload a commit with new development, I'm probably going to do a new PR
> and
> > I do not think that's the right procedure. What should I do is a PR to
> your
> > last commit?
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#296 (comment)>, or
mute
> > the thread
> > <
>
https://github.com/notifications/unsubscribe-auth/AHU_Vv6_KIinvrvPD_WZ8VCEJ8LgWtjnks5urtJAgaJpZM4WIlDR
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#296 (comment)>, or mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/ADmsM0sJIlI8VkPxXhFpYpnODDfg5TnVks5urtnpgaJpZM4WIlDR
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#296 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHU_Vsv5J5s3gwFM_gnE7L4m-0bPsrbJks5urvJUgaJpZM4WIlDR>
.
|
f9d0f4c
to
1cadd25
Compare
@ageficent can you squash the commits, and prepare a PR for v12? |
db6f515
to
0285b0b
Compare
self.assertEquals(self.act1.state, 'done') | ||
|
||
def test_activity_user_count(self): | ||
self.employee.activity_user_count() |
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.
An assert after this will make more sense
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.
Done 👍
@ageficent can you attend the open comments? And consider the. Also for v12 PR? |
have been completed. fixup moment js fixup
989a5b0
to
9277952
Compare
Done 👍 |
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.
LGTM 👍
This module implements the capability to keep activities that have been
completed, for future reporting, by setting them with the boolean 'Done'.
The activities that have been completed will not appear in the chatter.