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

refactor: remove unused commands #349

Merged
merged 67 commits into from
Aug 9, 2024
Merged

Conversation

fmartingr
Copy link
Contributor

@fmartingr fmartingr commented Dec 15, 2023

Summary

  • Removed commands not present in documentation: Create calendar, Delete calendar, Find Meetings, Create Event
  • Moved the show calendars command to admin only, in preparation for when we start working on multiple calendar support.

mickmister and others added 30 commits December 11, 2020 11:37
* remote logic

* allow datetimes without timezone

* add calendar settings readonly scope to get tz

* event conversion

* scopes

* revert datetime.time
…268)

* plugin profile images

* receive provider flag

* manifests

* retrieve manifest id from file

* Build time configuration

* revert manifest

* using go static configuration for providers

* removed unused build flags

* revert manifest

* Added basic Google Calendar instructions

* Update providers/GoogleCalendar.md

Co-authored-by: Michael Kochell <[email protected]>

* Update providers/GoogleCalendar.md

Co-authored-by: Michael Kochell <[email protected]>

* Update server/plugin/plugin.go

Co-authored-by: Michael Kochell <[email protected]>

* remoove log

---------

Co-authored-by: Michael Kochell <[email protected]>
* user_store: more information fields on the index

* feat: endpoint to autocomplete calendar connected users

* revert test event store hashed

* Update server/api/autocomplete.go

Co-authored-by: Michael Kochell <[email protected]>

* Update server/api/autocomplete.go

Co-authored-by: Michael Kochell <[email protected]>

* dont expose private data in endpoint

* lint

* Update server/store/user_store.go

Co-authored-by: Michael Kochell <[email protected]>

---------

Co-authored-by: Michael Kochell <[email protected]>
…276)

* chore: replace provider display name

* chore: replace command trigger references

* revert previous changes
…ot supported (#272)

* nil control

* use subscriptions default ttl

* return specific error when no superuser token can be used

* notification formatting logic to other file

* Client.GetEventsBetweenDates

* typo: import

* shorter command name :)

* availability without super user token

* delete store subs only if we successfuly do on remote

* comment

* ignore missing subs

* update sync method

* allow switching acting user on the fly

* daily summary without super user token

* formatted imports

* calendar -> calendarEvents

* processAllDailySummaryByUser
 -> processAllDailySummaryWithIndividualCredentials

* revert silenced error under notifications

* msgraph GetEventsBetweenDates

* Update server/mscalendar/daily_summary.go

Co-authored-by: Michael Kochell <[email protected]>

* [GCAL] Create event logic (#269)

* remote logic

* allow datetimes without timezone

* add calendar settings readonly scope to get tz

* event conversion

* scopes

* revert datetime.time

* Client.GetEventsBetweenDates

* fix: store last post time

* refactored availability logic

* availability test

* refactored daily summary logic

* test: availability

* daily summary tests (wip)

* daily summary test

* fix: merge duplications

* slack attachment for notifications

* lint and test

* goimports

* Update server/mscalendar/availability.go

Co-authored-by: Michael Kochell <[email protected]>

* remove logges

* nullify client when changing acting user

* move withActiveUser filter to fenced code outside of general method

* tests: handling more scenarios

* Fixed test after bugfix

* fixed test assertions

* allow engine copy to perform safe state mutations

---------

Co-authored-by: Michael Kochell <[email protected]>
* Added encrypted kvstore

* encrypt only oauth2 kv store

* retrieve encryption setting from provider config

* explicitly disable encrypted store for mscalendar

* remove old comment
* feat: added today and tomorrow commands with attachments

* remove unused function

* linted

* now -> day

* remove unused code

* today/tomorrow autocomplete

* return tables on today/tomorrow commands

* check for nil location

* revert tomorrow day times four

* fix markdown table render and test
* fix: test from merges

* add meeting url
* Move configuration logic to remotes

* check encryption key as well

* Update server/plugin/plugin.go

Co-authored-by: Michael Kochell <[email protected]>

---------

Co-authored-by: Michael Kochell <[email protected]>
* remove batch requests from gcal code

* More info in readme
…ssions plus internal state (#282)

* fix: notifications scope and acting user logic

* remove log

* avoid calling notifications if the engine fails to load
* fix: notifications scope and acting user logic

* fix: gcal unsubscribe requiring more parameters
* fix: better log information

* log missing error
…288)

* fix: embed tzdata to prevent errors on systems without it installed

* move to main

* avoid overwritting location if empty

* use tags instead of import
fmartingr and others added 7 commits August 31, 2023 14:27
* Optional fields

* time picker defaults

* Add custom icon to Create Event menu item

* add custom icon to date selector

* npm run fix

* header menu icon multiline

* use scss

* using proper typeRoots

* scoped css style
* extract conference data into new attribute

* removed log

* removed unused fuunction

* tests

* Update server/remote/gcal/get_default_calendar_view_test.go

Co-authored-by: Michael Kochell <[email protected]>

* more realistic datetime values

---------

Co-authored-by: Michael Kochell <[email protected]>
* refactor: mscalendar -> engine

* remove gcal assets

* refactored common code outside server package

* check-style

* go mod tidy

* REPO_URL -> REPOSITORY_URL

* delete unknown file

* updated mocks
@fmartingr fmartingr self-assigned this Dec 15, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2023

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 22.31%. Comparing base (d1fce7a) to head (4e7a82d).

Files Patch % Lines
calendar/command/command.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #349      +/-   ##
==========================================
+ Coverage   20.94%   22.31%   +1.36%     
==========================================
  Files          67       63       -4     
  Lines        3442     3231     -211     
==========================================
  Hits          721      721              
+ Misses       2628     2417     -211     
  Partials       93       93              

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

Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this cleanup 👍

calendar/command/command.go Outdated Show resolved Hide resolved
@fmartingr
Copy link
Contributor Author

Added the suggestion and fixed the CI. Blocked until #267 is merged.

Base automatically changed from migrate-to-gcal to master March 1, 2024 04:02
@raghavaggarwal2308
Copy link
Contributor

Added the suggestion and fixed the CI. Blocked until #267 is merged.

@fmartingr #267 is merged, can we merge this PR?

@raghavaggarwal2308 raghavaggarwal2308 added this to the v1.3.0 milestone Aug 9, 2024
@fmartingr
Copy link
Contributor Author

Added the suggestion and fixed the CI. Blocked until #267 is merged.

@fmartingr #267 is merged, can we merge this PR?

Sure, go ahead.

@raghavaggarwal2308
Copy link
Contributor

@wiggin77 @fmartingr Do you think we need a QA on this?

@wiggin77
Copy link
Member

wiggin77 commented Aug 9, 2024

@wiggin77 @fmartingr Do you think we need a QA on this?

I don't think so, but Felipe can decide as he is the author.

@fmartingr
Copy link
Contributor Author

@wiggin77 @fmartingr Do you think we need a QA on this?

I don't think we need QA on this, I just removed a bunch of unsupported /non working commands.

@raghavaggarwal2308 raghavaggarwal2308 merged commit 120d1dc into master Aug 9, 2024
6 checks passed
@raghavaggarwal2308 raghavaggarwal2308 deleted the remove-unused-commands branch August 9, 2024 19:05
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.

5 participants