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

Feature/ae 2274 viestit removal #559

Merged
merged 41 commits into from
Oct 16, 2024
Merged

Conversation

solita-juhohaa
Copy link
Contributor

No description provided.

I have chosen to encapsulate all of the destruction logic in one
namespace. I don't know if it is a good choice as I could also just add
the functionality to destroy anything in their respective namespaces but
as I find those functions to be somewhat dangerous I think encapsulating
the destruction in just a single namespace is safer and therefore I need
to expose this function.
When checking for existence the invoke function logged an error even
though file-exists? expects the error to be thrown and therefore it's
not an error in this case.
The outermost resources need to be deleted first
There is a possible problem that is handled in
`check-oikeellisuuden-valvonta-viestiketjut` for now by just logging out
an error if it happens.

There are foreign key reference chain
viestiketju->vo_toimenpide->energiatodistus and
viestiketju->energiatodistus which could possibly cause problems as
viestiketju can reference energiatodistus and a toimenpide that
references different energiatodistus.
@solita-juhohaa solita-juhohaa force-pushed the feature/AE-2274-viestit-removal branch from a6bbfaa to 9ae97fa Compare October 16, 2024 06:49
@solita-juhohaa solita-juhohaa force-pushed the feature/AE-2274-viestit-removal branch from ccbbe8e to 59f8710 Compare October 16, 2024 11:42
…t does not exist when destroying energiatodistus
from vo_toimenpide
group by energiatodistus_id) latest_toimenpide
on energiatodistus.id = latest_toimenpide.energiatodistus_id
where voimassaolo_paattymisaika < current_date
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tässä voi olla ongelma, koska current_date saattaa antaa jo huomisen päivän, koska se ei välttämättä ole sidottu suomen aikavyöhykkeeseen

@solita-juhohaa solita-juhohaa marked this pull request as ready for review October 16, 2024 13:33
@solita-juhohaa solita-juhohaa requested a review from muep October 16, 2024 13:33
@solita-juhohaa solita-juhohaa force-pushed the feature/AE-2274-viestit-removal branch from b429bf5 to 8dbf9b1 Compare October 16, 2024 15:21
@solita-juhohaa solita-juhohaa merged commit 5dc925e into main Oct 16, 2024
16 checks passed
@solita-juhohaa solita-juhohaa deleted the feature/AE-2274-viestit-removal branch October 16, 2024 15:56
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.

2 participants