-
-
Notifications
You must be signed in to change notification settings - Fork 250
Update owasp app event model with calendar attributes and add reminder models #2128
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
Merged
arkid15r
merged 12 commits into
OWASP:feature/nestbot-calendar-events
from
ahmedxgouda:nestbot-calendar/update-event-model
Sep 3, 2025
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
cf0e49e
Update event
ahmedxgouda 1fbe17d
Add slack member and channel id fields
ahmedxgouda 6673f32
Apply rabbit's suggestion
ahmedxgouda 7a81715
Merge branch 'feature/nestbot-calendar-events' into nestbot-calendar/…
ahmedxgouda 86cd277
Apply suggestions
ahmedxgouda b29136f
Add null possibility to channel in remainder
ahmedxgouda f68b281
Apply rabbit suggestions
ahmedxgouda 526c74f
Merge branch 'feature/nestbot-calendar-events' into nestbot-calendar/…
kasya c2a4add
Use channel id and add tests
ahmedxgouda 2e345a7
Merge branch 'feature/nestbot-calendar-events' into nestbot-calendar/…
ahmedxgouda b986d25
Apply suggestions and add reminder shedule
ahmedxgouda bb07ef6
Merge branch 'feature/nestbot-calendar-events' into nestbot-calendar/…
ahmedxgouda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
...nd/apps/owasp/migrations/0049_event_calendar_id_event_channel_id_event_member_and_more.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Generated by Django 5.2.4 on 2025-08-26 00:34 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| dependencies = [ | ||
| ("owasp", "0048_entitymember"), | ||
| ("slack", "0018_conversation_sync_messages"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="event", | ||
| name="calendar_id", | ||
| field=models.CharField( | ||
| blank=True, default="", max_length=1024, verbose_name="Calendar ID" | ||
| ), | ||
| ), | ||
| migrations.AddField( | ||
| model_name="event", | ||
| name="channel_id", | ||
| field=models.CharField(default="", max_length=15, verbose_name="Channel ID"), | ||
| ), | ||
| migrations.AddField( | ||
| model_name="event", | ||
| name="member", | ||
| field=models.ForeignKey( | ||
| null=True, | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| related_name="calendar_events", | ||
| to="slack.member", | ||
| verbose_name="Slack Member", | ||
| ), | ||
| ), | ||
| migrations.AddField( | ||
| model_name="event", | ||
| name="status", | ||
| field=models.CharField( | ||
| choices=[ | ||
| ("confirmed", "Confirmed"), | ||
| ("tentative", "Tentative"), | ||
| ("canceled", "Canceled"), | ||
| ], | ||
| default="confirmed", | ||
| max_length=11, | ||
| verbose_name="Status", | ||
| ), | ||
ahmedxgouda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ), | ||
| migrations.AddField( | ||
| model_name="event", | ||
| name="type", | ||
| field=models.CharField( | ||
| choices=[("calendar", "Calendar"), ("existing", "Existing")], | ||
| default="existing", | ||
| max_length=11, | ||
| verbose_name="Type", | ||
| ), | ||
| ), | ||
| ] | ||
31 changes: 31 additions & 0 deletions
31
backend/apps/owasp/migrations/0050_alter_event_status_event_event_type_idx.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Generated by Django 5.2.4 on 2025-08-26 01:52 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| dependencies = [ | ||
| ("owasp", "0049_event_calendar_id_event_channel_id_event_member_and_more"), | ||
| ("slack", "0018_conversation_sync_messages"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="event", | ||
| name="status", | ||
| field=models.CharField( | ||
| choices=[ | ||
| ("confirmed", "Confirmed"), | ||
| ("tentative", "Tentative"), | ||
| ("cancelled", "Cancelled"), | ||
| ], | ||
| default="confirmed", | ||
| max_length=11, | ||
| verbose_name="Status", | ||
| ), | ||
| ), | ||
| migrations.AddIndex( | ||
| model_name="event", | ||
| index=models.Index(fields=["type"], name="event_type_idx"), | ||
| ), | ||
| ] | ||
ahmedxgouda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.