Add iCal feed widget for dashboard, including template and migration #28

Merged
hansegucker merged 5 commits from 3-add-feed-widget-for-ical-calendars into master 2020-03-18 11:40:06 +01:00
Member

Bildschirmfoto_von_2020-03-18_11-34-17

Closes #3

![Bildschirmfoto_von_2020-03-18_11-34-17](/uploads/2752871ad81591903120ed27b6546481/Bildschirmfoto_von_2020-03-18_11-34-17.png) Closes #3
Author
Member

changed milestone to %"2.0a2"

changed milestone to %"2.0a2"
Owner

assigned to @nik

assigned to @nik
Owner

date_format and tiem_format seem superfluous here, because formatting belongs into templates (and what you use here is the default formatting DJango will apply when simply outputting the datetime or time objects in a template).

`date_format` and `tiem_format` seem superfluous here, because formatting belongs into templates (and what you use here is the default formatting DJango will apply when simply outputting the `datetime` or `time` objects in a template).
Owner
    if not calendar_url:

Using boolean not on a string is False if the string is empty or None. This can be a problem when you really want to catch only one of these cases, but if you want both, just use boolean not.

```suggestion:-0+0 if not calendar_url: ``` Using boolean `not` on a string is False if the string is empty or None. This can be a problem when you really want to catch only one of these cases, but if you want both, just use boolean `not`.
Owner

Do not use print. Use a logger if you want to notify the administrator, or the messages system if you want to notify the user through the frontend.

Do not use `print`. Use a logger if you want to notify the administrator, or the messages system if you want to notify the user through the frontend.
Owner

Now I see that you are constructing strings later on, so you actually do need the formatted strings here.

Now I see that you are constructing strings later on, so you actually do need the formatted strings here.
Author
Member

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/official/AlekSIS-App-DashboardFeeds/-/merge_requests/3/diffs?diff_id=1425&start_sha=16dcf3ed3687d246f4158cd546273cc7142a52c3#31f0d71ad804890d3169c5b41ea8814465567be9_63_63)
Author
Member

added 1 commit

  • 3a9f16b7 - Apply suggestion to aleksis/apps/dashboardfeeds/util/event_feed.py

Compare with previous version

added 1 commit <ul><li>3a9f16b7 - Apply suggestion to aleksis/apps/dashboardfeeds/util/event_feed.py</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-DashboardFeeds/-/merge_requests/3/diffs?diff_id=1425&start_sha=16dcf3ed3687d246f4158cd546273cc7142a52c3)
Author
Member

changed this line in version 3 of the diff

changed this line in [version 3 of the diff](/AlekSIS/official/AlekSIS-App-DashboardFeeds/-/merge_requests/3/diffs?diff_id=1426&start_sha=3a9f16b732168c1f3fa7a90c8074eaf3d96d055f#31f0d71ad804890d3169c5b41ea8814465567be9_70_80)
Author
Member

added 2 commits

  • ce9d1f88 - Cache calendar events for 5 minutes
  • d6cf0a8e - Don't print error messages, cache events

Compare with previous version

added 2 commits <ul><li>ce9d1f88 - Cache calendar events for 5 minutes</li><li>d6cf0a8e - Don&#39;t print error messages, cache events</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-DashboardFeeds/-/merge_requests/3/diffs?diff_id=1426&start_sha=3a9f16b732168c1f3fa7a90c8074eaf3d96d055f)
Owner
https://docs.djangoproject.com/en/3.0/topics/logging/#using-logging
Author
Member

changed this line in version 4 of the diff

changed this line in [version 4 of the diff](/AlekSIS/official/AlekSIS-App-DashboardFeeds/-/merge_requests/3/diffs?diff_id=1427&start_sha=d6cf0a8e21d40590a2166c6736cd59bb6c34096e#31f0d71ad804890d3169c5b41ea8814465567be9_80_82)
Author
Member

added 1 commit

Compare with previous version

added 1 commit <ul><li>d362bb47 - Improve logging</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-DashboardFeeds/-/merge_requests/3/diffs?diff_id=1427&start_sha=d6cf0a8e21d40590a2166c6736cd59bb6c34096e)
Owner

According to the recent changes, i think we can resolve the discussions, @ZugBahnHof ?

According to the recent changes, i think we can resolve the discussions, @ZugBahnHof ?
Author
Member

resolved all threads

resolved all threads
Owner

changed the description

changed the description
Owner

mentioned in commit 48f82e94a2

mentioned in commit 48f82e94a2d5ec9637f5126ce78be830eb91d070
Owner

merged

merged
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-DashboardFeeds!28
No description provided.