Bug 428818 - gdbus calls don't update ui appropriately, event not created on selected date
Summary: gdbus calls don't update ui appropriately, event not created on selected date
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 5.15.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-08 05:20 UTC by Matty R
Modified: 2021-05-31 11:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matty R 2020-11-08 05:20:18 UTC
SUMMARY
I'm attempting to use some gdbus calls for initiating the new event dialog on a specific date. The UI does not update when launched with some gdbus calls, and openEventEditor does not create a new event on the selected date.

STEPS TO REPRODUCE
1. Launch korganizer with:

$ gdbus call --session --dest=org.kde.korganizer --object-path=/Calendar --method=org.kde.Korganizer.Calendar.goDate "(2020,12,31)" && gdbus call --session --dest=org.kde.korganizer --object-path=/Calendar --method=org.kde.Korganizer.Calendar.openEventEditor

OBSERVED RESULT
Korganizer launches, New event dialog is shown. New event is created on current date (not selected date), Month view is not showing the correct Month from the date selected.

EXPECTED RESULT
Korganizer launches with the correct date selected, with the Month view updated accordingly. New event dialog has the date set to the selected date.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.3-zen1-1-zen
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700K CPU @ 4.00GHz
Memory: 31.3 GiB of RAM
Graphics Processor: GeForce GTX 1080 Ti/PCIe/SSE2


ADDITIONAL INFORMATION
I'm working on adding a feature to a calendar widget that will allow the user double-click a date in the widget, and launch korganizer to create an event on that date.

If there is a better method for launching the new event dialog from gdbus or something else, please let me know.
Comment 1 Matty R 2020-11-08 05:22:07 UTC
STEPS TO REPRODUCE:

(edit)

$ gdbus call --session --dest=org.kde.korganizer --object-path=/Calendar --method=org.kde.Korganizer.Calendar.goDate "(2020,12,31)" && gdbus call --session --dest=org.kde.korganizer --object-path=/Calendar --method=org.kde.Korganizer.Calendar.openEventEditor ""
Comment 2 Laurent Montel 2020-11-08 21:40:44 UTC
I confirm it.
by default it uses current date.
I am not sure that I need to fix this method or create new method.
But it seems more logical to use selected date.
Comment 3 Matty R 2021-05-31 11:23:47 UTC
Nothing happening with this - closing