Skip to content

[ADD] beesdoo_shift_website_unsubscribe: add module#305

Open
tfrancoi wants to merge 1 commit into
12.0from
12.0-unsubscribe
Open

[ADD] beesdoo_shift_website_unsubscribe: add module#305
tfrancoi wants to merge 1 commit into
12.0from
12.0-unsubscribe

Conversation

@tfrancoi

Copy link
Copy Markdown
Contributor

Add module to allow to unsubscribe from the portal
X hour before the shift starts

@tfrancoi

Copy link
Copy Markdown
Contributor Author

TODO: retarget on 12.0 once add-polln-shift is merged
Move to a new module

Base automatically changed from 12.0-add-polln-shift to 12.0 February 24, 2022 17:32

@robinkeunen robinkeunen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

comment + move to beesdoo_shift


from werkzeug.exceptions import Forbidden

class WebsiteMacavracShiftController(http.Controller):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe a better name ?


<template id="my_shift" name="Shifts for Irregular Workers"
inherit_id="beesdoo_website_shift.my_shift_next_shifts">
<xpath expr="//t[@t-esc='shift.task_type_id.name']" position="replace">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Instead of replace, could you rather

  • submit a PR to beesdoo_shift to replace <t t-esc="shift.task_type_id.name" /> by <t t-esc="shift.task_template_id.name or shift.task_type_id.name" />
  • than adding the button with a <xpath ... position="after">

</button>
</xpath>
<xpath expr="//div[@t-if='shift.super_coop_id.name']/.." position="after">
<t t-foreach="subscribed_shifts" t-as="shift">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TIL modals for confirmation popups: nice 🙏 @remytms fyi

Add module to allow to unsubscribe from the portal
X hour before the shift starts
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #305 (3e2c14a) into 12.0 (fa7306c) will decrease coverage by 0.16%.
The diff coverage is 18.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##             12.0     #305      +/-   ##
==========================================
- Coverage   68.53%   68.37%   -0.17%     
==========================================
  Files         107      107              
  Lines        3366     3377      +11     
  Branches      589      591       +2     
==========================================
+ Hits         2307     2309       +2     
- Misses        951      960       +9     
  Partials      108      108              
Impacted Files Coverage Δ
polln_shift/models/planning.py 25.17% <18.18%> (-0.59%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa7306c...3e2c14a. Read the comment docs.

@remytms

remytms commented Mar 15, 2022

Copy link
Copy Markdown
Collaborator

I rater prefer that this will be merge into the beesdoo_website_shift module, with an option to enable or disable the unsubscription. Also, @MatteoLdx can do the job. :)

@MatteoLdx

MatteoLdx commented Apr 28, 2022

Copy link
Copy Markdown
Contributor

I rater prefer that this will be merge into the beesdoo_website_shift module, with an option to enable or disable the unsubscription. Also, @MatteoLdx can do the job. :)

#395

@polchampion

Copy link
Copy Markdown
Collaborator

Virg et Pol : intéret probable de l'intercoop, Virg sonde

@remytms Peux-tu estimer environ le temps nécessaire ici pour séparer dans un nouveau module et clore les reviews ?

@polchampion

Copy link
Copy Markdown
Collaborator

@robinkeunen @vdewulf Pour suivi.

@vdewulf

vdewulf commented Jun 7, 2022

Copy link
Copy Markdown

@polchampion Matteo a fait cet ajout dans #395 et c'est en test.
Pol, je te laisse tester.
Je fait un point d'info à l'intercoop pour dire que ça va arriver (plutôt que pour demander s'ils le veulent, vu que c'est fait ^^)

@polchampion

Copy link
Copy Markdown
Collaborator

@vdewulf Pour info, testé et documenté

@vdewulf

vdewulf commented Jun 13, 2022

Copy link
Copy Markdown

@polchampion super, merci :)
Tu le listes pour la prochaine RN (dans le doc s'il existe déjà ou dans la liste des choses à suivre durant ton congé) ?
Et très jolie flèche faite à la main dans la doc ^^ La main était sûre d'elle ;)

@vdewulf

vdewulf commented Jun 13, 2022

Copy link
Copy Markdown

@polchampion une autre petite question : est-ce qu'il y a une limite de temps pour pouvoir se désinscrire qui est codée qqpart (par exemple impossible de se désinscrire 24h à l'avance via l'interface) ?
Je ne vois pas d'info qui va dans ce sens dans la doc. J'ai raté l'info ou bien ce n'est pas codé ainsi ?

@vdewulf

vdewulf commented Jun 13, 2022

Copy link
Copy Markdown

@polchampion ah purée je suis trop à la masse, j'ai vu que c'était bien le cas et documenté ;) abort le message précédent

@polchampion

Copy link
Copy Markdown
Collaborator

@polchampion super, merci :) Tu le listes pour la prochaine RN (dans le doc s'il existe déjà ou dans la liste des choses à suivre durant ton congé) ? Et très jolie flèche faite à la main dans la doc ^^ La main était sûre d'elle ;)

@vdewulf Oui je fais ça cette aprèm. Et malheureusement, Nimbus capture n'aide pas vraiment à faire des jolis arcs de cercle, c'est mission impossible à la main donc j'ai arrêté d'essayer...

@MatteoLdx

Copy link
Copy Markdown
Contributor

Unsubscription has been added to beesdoo_shift -> #309

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.

7 participants