Duplicate scheduled year for single day events whose scheduled year is rendered
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 58/100
調査の方向性
Start with templates/events/includes/time_tag.html, which the issue identifies as containing the offending template logic, and reproduce the case on the main events page with a single-day event in a future or past year. Done means each affected event renders at most one year string, with the current year omitted when it is unambiguous.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
What
For single day events (events that start and end on the same day) that require year string to be displayed [which are]:
- Single day events scheduled for a future year
- Single day events that have passed rendered at the "You just missed..." section of the main events page {pythondotorg url}/events/
The year string is rendered multiple times.
Here are a couple of examples
1. Past event scenario
2. Future event scenario
To Reproduce
- Set up a single day event scheduled to start in the future year or scheduled in the past (e.g. event has just been concluded)
- Navigate to the main events page (http://localhost:8000/events) and observe the year string rendered multiple times.
Expected behavior
- Single day events (regardless of schedule year) should only render a single year string (if necessary) since the event is guaranteed to start and end within the same year.
Addressing "If necessary"
- Future single day event scheduled within the current year does not need to render the current year as there is no date/year ambiguity.
- Past single day events (Events just missed) would need to render the year string dispelling any ambiguity on year event took place.
URL to the issue
No response
Screenshots
No response
Browsers
Firefox, Chrome, Safari, Microsoft Edge, Other
Operating System
Linux
Browser Version
No response
Relevant log output
No response
Additional context
I've traced down the offending template logic:
https://github.com/python/pythondotorg/blob/1bfeace44973dff8310f695ca15b40c277047cc7/templates/events/includes/time_tag.html#L1-L9
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 702
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python/pythondotorg のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
python/pythondotorg#3149 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug: The code examples on the main page don't match their source code対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
python/pythondotorg#3137 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
app/pages bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
python/pythondotorg#2677 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
backend easy
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
python/pythondotorg#2453 · コメント 8 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug: Nominee list shows nominations of you, not nominations you made, and ignores the election対応中かも @jefftriplett が 53 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
python/pythondotorg#3094 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
python/pythondotorg の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
data-umbrella/du-event-board#225 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100