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

fix: environment webhooks shows current date, not created date #2555

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Aug 1, 2023

Changes

Fixes #2554

How did you test this code?

Ran locally. Created a webhook, edited the created date. Verified that it showed the correct date.

image

@vercel
Copy link

vercel bot commented Aug 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2023 10:21am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2023 10:21am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2023 10:21am

gagantrivedi
gagantrivedi previously approved these changes Aug 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2023

Uffizzi Preview deployment-32226 was deleted.

Comment on lines 12 to 22
operations = [
migrations.AddField(
model_name='organisationwebhook',
name='created_at',
field=models.DateTimeField(auto_now_add=True, null=True),
),
migrations.AddField(
model_name='organisationwebhook',
name='updated_at',
field=models.DateTimeField(auto_now=True, null=True),
),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have you verified (perhaps just with python manage.py sqlmigrate organisations 0043) that it doesn't update existing webhooks?

@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (6dba7bd) 95.43% compared to head (47ad2dc) 95.44%.
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2555   +/-   ##
=======================================
  Coverage   95.43%   95.44%           
=======================================
  Files         972      975    +3     
  Lines       27190    27221   +31     
=======================================
+ Hits        25950    25981   +31     
  Misses       1240     1240           
Files Changed Coverage Δ
...reated_at_and_updated_at_to_organisationwebhook.py 100.00% <100.00%> (ø)
api/organisations/models.py 93.28% <100.00%> (+0.09%) ⬆️
api/organisations/serializers.py 93.65% <100.00%> (ø)

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dabeeeenster
Copy link
Contributor

Need to modify migrations to not set current datetime on application

@dabeeeenster dabeeeenster merged commit 94fb957 into main Aug 1, 2023
15 of 16 checks passed
@dabeeeenster dabeeeenster deleted the fix/webhook-created-date branch August 1, 2023 10:40
This was referenced Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Environment Flag Webhooks show the current date rather than the created date
4 participants