Skip to content

refactor(calendarEvents): rework search events + add search for account level#183

Merged
GuillaumeDecMeetsMore merged 10 commits intomasterfrom
guillaume/refactor/rework-search-events-and-add-account-search-events
Jan 23, 2025
Merged

refactor(calendarEvents): rework search events + add search for account level#183
GuillaumeDecMeetsMore merged 10 commits intomasterfrom
guillaume/refactor/rework-search-events-and-add-account-search-events

Conversation

@GuillaumeDecMeetsMore
Copy link
Collaborator

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore commented Jan 21, 2025

Changed

  • [breaking] Change types used for searching for events
    • Improve how search parameters are handled
    • Extend their capabilities (more possibilities)
    • Improve how they are handled at the repository level
  • Add new route at the account level for searching for events across all users of an account

Notes

  • This is not finished
    • Need tests (will do in follow-up PR)
    • Needs proper indexes
    • Might need more fields

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore self-assigned this Jan 21, 2025
Base automatically changed from guillaume/feat/calendar-event-add-event-type to master January 21, 2025 09:49
@GuillaumeDecMeetsMore GuillaumeDecMeetsMore changed the title refactor(calendarEvents): rework search events + add account level refactor(calendarEvents): rework search events + add search for account level Jan 22, 2025
@GuillaumeDecMeetsMore GuillaumeDecMeetsMore marked this pull request as ready for review January 22, 2025 07:39
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Most interesting struct here (1)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Most interesting struct here (2)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Most interesting struct here (3)

Copy link

@mm-zacharydavison mm-zacharydavison left a comment

Choose a reason for hiding this comment

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

Approved conditionally

pub eq: Option<ID>,

/// Optional ID (inequality test)
/// If "eq" is provided, this field is ignored

Choose a reason for hiding this comment

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

This might not be possible because of the rust -> ts types translation, but if I was designing this from a type-perspective in TS, I would make IdQuery a union type of a few different types, such that eq cannot co-exist with other options.

If it's messy / hard to do in rust -> ts, ignore this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, it's likely possible, let me check 👍

Copy link

@mm-zacharydavison mm-zacharydavison left a comment

Choose a reason for hiding this comment

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

Approved if i'm wrong about the comments:

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore merged commit 431cd7a into master Jan 23, 2025
4 checks passed
@GuillaumeDecMeetsMore GuillaumeDecMeetsMore deleted the guillaume/refactor/rework-search-events-and-add-account-search-events branch January 23, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants