-
Notifications
You must be signed in to change notification settings - Fork 0
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
Amélioration et historisation des candidats de la file active #382
base: main
Are you sure you want to change the base?
Conversation
8833c1e
to
e48a4d3
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.
C"est la clause where
de ce fichier qui m'a fait tiquer, mais dans ce modèle faudrait pas remplacer le right join
par un inner join
vu que candidats_recherche_active.sql
regarder stg_candidats_candidatures
pour savoir si le candidat est dans la fil active ou pas ça ne devrait rien changer, et peut-être aussi virer la clause where
pour ne pas dupliquer la logique des 6 mois à plusieurs endroits ?
-- the previous state is no longer current if : | ||
-- 1: dbt_valid_from is bigger than last week date (this line is the new state) // dbt_valid_from is bigger than the last known date | ||
-- 2: dbt_valid_to is bigger than last week date (this line is the last state that is now finished) // dbt_valid | ||
where dbt_valid_from >= last_known_date.lkd or dbt_valid_to >= last_known_date.lkd |
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.
where dbt_valid_from >= last_known_date.lkd or dbt_valid_to >= last_known_date.lkd | |
where dbt_valid_from >= last_known_date.lkd or dbt_valid_to >= last_known_date.lkd or dbt_valid_to is null |
Non ? 🤔
unique_key=['id', 'semaine_valide'], | ||
post_hook=""" | ||
DELETE FROM {{ this }} | ||
WHERE date_derniere_candidature_acceptee is not null and delai_premiere_candidature > 30 |
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.
J'ai mon cerveau qui fume mais delai_premiere_candidature > 30
c'est pas plus ou moins file_active_30_jours
?
**Carte Notion : **
Pourquoi ?
Checks