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

Add event and event series entities #4868

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

pacodelcastillolopez
Copy link
Collaborator

@pacodelcastillolopez pacodelcastillolopez commented Jul 16, 2024

Adding two new ANET entities: event series and events.

  • They have a host organization that can be any organization in ANET and an admin organization which needs to be managed by the user creating the event series or event (superuser or admin).
  • Events have also a location, start date and end date and are searchable.
  • Objectives can be linked to events.
  • Reports can be associated to events. When creating from the Event page it will inherit its location and objectives, the date of the report has to be within the start and end date of the event.
  • Events will be displayed in the organization and location pages.

To do:

  • Add testing once implementation is approved.
  • Add blocking feature (flag in an event that can block a location for the period the event takes place)
  • Add attachments to events (will be done together with adding avatar to events)

Closes AB#1064

User changes

  • Can search for events in ANET.
  • Can associate a report to an event.

Superuser changes

  • Can create event series and events managed by the organizations they manage.
  • Can see the event series and events they manage under "My Events".

Admin changes

  • Can create event series and events managed by any organization.

System admin changes

  • anet.yml or anet-dictionary.yml needs change
  • db needs migration
  • documentation has changed
  • graphql schema has changed

Checklist

  • Described the user behavior in PR body
  • Referenced/updated all related issues
  • commits follow a repo#issue: Title title format and these 7 rules
  • commits have a clean history, otherwise PR may be squash-merged
  • Added and/or updated unit tests
  • Added and/or updated e2e tests
  • Added and/or updated data migrations
  • Updated documentation
  • Resolved all build errors and warnings
  • Opened debt issues for anything not resolved here

@pacodelcastillolopez pacodelcastillolopez changed the title Addind event and event series entities Adding event and event series entities Jul 16, 2024
Copy link

azure-boards bot commented Jul 16, 2024

✅ Successfully linked to Azure Boards work item(s):

@gjvoosten gjvoosten changed the title Adding event and event series entities Add event and event series entities Jul 16, 2024
src/main/resources/migrations.xml Outdated Show resolved Hide resolved
src/main/resources/migrations.xml Outdated Show resolved Hide resolved
src/main/resources/migrations.xml Outdated Show resolved Hide resolved
src/main/resources/migrations.xml Outdated Show resolved Hide resolved
src/main/resources/migrations.xml Outdated Show resolved Hide resolved
src/main/java/mil/dds/anet/resources/EventResource.java Outdated Show resolved Hide resolved
client/src/components/aggregations/utils.js Outdated Show resolved Hide resolved
client/src/components/aggregations/utils.js Outdated Show resolved Hide resolved
title,
start,
end,
url: Event.pathFor(event),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe use different colours for the different types of events, like for reports, where we have:

        classNames: [`event-${Report.getStateForClassName(r)}`],

?

@pacodelcastillolopez pacodelcastillolopez force-pushed the AB-1064_events_entities branch 2 times, most recently from a3abfe2 to de19400 Compare October 8, 2024 07:43
@pacodelcastillolopez pacodelcastillolopez force-pushed the AB-1064_events_entities branch 2 times, most recently from 29b80f4 to 948880d Compare October 8, 2024 11:42
@gjvoosten gjvoosten force-pushed the AB-1064_events_entities branch 2 times, most recently from a74d21c to a5fa40c Compare November 5, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants