1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-24 05:28:18 +01:00
phorge-phorge/src/applications/calendar/controller
Valerio Bozzolan 02a4f8b0c8 Fix editing a Calendar import ICS URI
Summary:
Before this change it was only possible to create a Calendar import ICS URI.
After this change it's possible to also edit already-existing elements.

This change fixes this specific exception when visiting similar pages:

        /calendar/import/edit/5/

        Argument 2 passed to PhabricatorCalendarImport::initializeNewCalendarImport()
        must be an instance of PhabricatorCalendarImportEngine, null given, called in
        phorge/src/applications/calendar/editor/PhabricatorCalendarImportEditEngine.php
        on line 45

Before this change it was only theorically possible to edit the name, policies, etc.
but not the URI.

This change also introduces the ability to edit the specific ICS URI,
in order to change legitimate parts of the URI, like the secret token.

Closes T15137

Test Plan:
I tested in my own installation with success lints.

To test, visit the Calendar, create an import ICS URI, and then try to edit it again.
It will work only after this change.

I was not able to conclude the "arc diff" since it tries to connect
to an unexisting database owned by root.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, Cigaryno, speck, tobiaswiese, Matthew

Maniphest Tasks: T15137

Differential Revision: https://we.phorge.it/D25061
2022-12-17 12:17:37 +01:00
..
PhabricatorCalendarController.php Make event detail view more user-friendly for imported events 2016-10-19 09:58:57 -07:00
PhabricatorCalendarEventAvailabilityController.php Allow users to mark themselves as "Available", "Busy" or "Away" while attending an event 2016-11-04 16:55:44 -07:00
PhabricatorCalendarEventCancelController.php Make the modal choice between "Edit This Event" and "Edit Future Events" more clear 2016-11-28 10:47:58 -08:00
PhabricatorCalendarEventDragController.php Convert Calendar to Modular Transactions 2016-07-13 07:46:33 -07:00
PhabricatorCalendarEventEditController.php Make the modal choice between "Edit This Event" and "Edit Future Events" more clear 2016-11-28 10:47:58 -08:00
PhabricatorCalendarEventExportController.php Export recurring events and build ICS files for configured exports 2016-10-06 14:07:17 -07:00
PhabricatorCalendarEventJoinController.php Make event detail view more user-friendly for imported events 2016-10-19 09:58:57 -07:00
PhabricatorCalendarEventListController.php Suggest better start/end datetimes for Calendar events 2016-10-26 13:10:29 -07:00
PhabricatorCalendarEventViewController.php Clean up some colors missing from PHUITagView type shade 2017-05-22 10:52:10 -07:00
PhabricatorCalendarExportDisableController.php Allow Calendar exports to be disabled 2016-10-06 15:34:51 -07:00
PhabricatorCalendarExportEditController.php Rough in most of Calendar exports 2016-10-06 04:06:35 -07:00
PhabricatorCalendarExportICSController.php Fix a couple of calendar export daterange issues 2016-11-18 10:07:35 -08:00
PhabricatorCalendarExportListController.php Rough in most of Calendar exports 2016-10-06 04:06:35 -07:00
PhabricatorCalendarExportViewController.php Allow Calendar exports to be disabled 2016-10-06 15:34:51 -07:00
PhabricatorCalendarImportDeleteController.php Allow events from a particular import source to be bulk-deleted 2016-10-18 15:24:06 -07:00
PhabricatorCalendarImportDisableController.php Support disabling calendar imports 2016-10-13 09:05:55 -07:00
PhabricatorCalendarImportDropController.php Allow Calendar imports to be configured with hourly or daily auto-updates 2016-10-26 12:19:14 -07:00
PhabricatorCalendarImportEditController.php Fix editing a Calendar import ICS URI 2022-12-17 12:17:37 +01:00
PhabricatorCalendarImportListController.php Make Calendar ICS imports sort of work in a crude, approximate way 2016-10-12 15:29:05 -07:00
PhabricatorCalendarImportLogListController.php Add a SearchEngine for Calendar import logs 2016-10-18 15:23:37 -07:00
PhabricatorCalendarImportReloadController.php Add an explicit "Reload Import" action to imports 2016-10-25 10:33:14 -07:00
PhabricatorCalendarImportViewController.php Replace all "setQueryParam()" calls with "remove/replaceQueryParam()" 2019-02-14 11:56:39 -08:00