question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgraded from version 0.7.5 to latest develop and facing issues with daily table and occurrences

See original GitHub issue

Hello, I had developed UI using old version of django-scheduler 0.7.5 But during my testing I found the issues with get occurences list. After checking the commit history I saw there was a recent fix so I took latest code and merged with my UI. I did all migrations and updated the call to scheduletags also. My daily view is not showing currently.

Here is the use case: Created a daily recurrence event for 7 days from 10am to next day 10am. start | end | title | description | created_on | updated_on | end_recurring_period | calendar_id | creator_id | rule_id ---------------------+---------------------+-----------------+-------------+---------------------+---------------------+----------------------+-------------+------------+--------- 2017-01-13 15:00:00 | 2017-01-14 15:00:00 | smajum002c,test | | 2017-01-24 01:14:44 | 2017-01-24 01:14:44 | 2017-01-20 05:00:00 | 11 | 1 | 10

rule used is: 10 | DAILY | Occurs every day | DAILY | NULL

I’m displaying the daily view like: {% daily_table period 0 24 60 %}

However instead of entire day showing as occupied it’s only showing the events at slot for 9 AM and 10 AM EST and also for 9PM and 10 PM EST.

Earlier it used to show entire day as blocked or filled and it was a very useful view to check daily events.

Can someone please tell me how to display daily view for complete set currently? Any input would be greatly appreciated?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mpaolinocommented, Jan 24, 2017

@sushovan23 thanks, I’ve just pushed another fix on my branch for events that don’t have an end_recurring_period. I’ll make a PR, feel free to pull it from my branch or wait untils its merged.

0reactions
sushovan23commented, Jan 24, 2017

@mpaolino : Sure here is the test data: Created one event 24 hrs duration with daily re-occurrence for a week. Then from daily calendar view and i’m clicking one any occurrence and clicking the option to edit ‘This’ occurrence from the popup dialog,

data in database:

+-----+---------------------+---------------------+-----------------+-------------+---------------------+---------------------+----------------------+-------------+------------+---------
| id  | start               | end                 | title           | description | created_on          | updated_on          | end_recurring_period | calendar_id | creator_id | rule_id
+-----+---------------------+---------------------+-----------------+-------------+---------------------+---------------------+----------------------+-------------+------------+---------
| 206 | 2017-01-13 15:00:00 | 2017-01-14 15:00:00 | smajum002c,test |             | 2017-01-24 14:22:02 | 2017-01-24 14:22:02 | 2017-01-20 05:00:00  |          11 |          1 |      10

Then it should go to edit occurrence page but it is failing since get_occurrence() is views.py has an issue in getting occurrence from method event.getoccurence() which returns None. Thus it doesn’t go to edit occurrence page anymore.

Opened issue #289

Read more comments on GitHub >

github_iconTop Results From Across the Web

get_occurrence in schedule/views.py is failing as occurrence ...
Created one event 24 hrs duration with daily re-occurrence for a week. ... Upgraded from version 0.7.5 to latest develop and facing issues...
Read more >
Current news - RKWard - KDE
A new release, RKWard 0.7.5, is available for download, today. The most visible changes are the inclusion of many new and improved code ......
Read more >
Gravity Forms Change Log
Fixed an issue where the wrong change log can display on update. ... Added a completely new and more modern design for all...
Read more >
Untitled
Patch 31 - version 0.7.5 changelog. Chef: A Restaurant Tycoon Game - OwNathan. A new patch for Chef has been released! We fixed...
Read more >
About Us - Daily Table
2017. We signed a lease with Madison Square Community Development to open a store in Nubian (previously Dudley) Square. We started our Teaching...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found