Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Future sidebar #233

Closed
christianherro opened this issue May 5, 2016 · 8 comments
Closed

Refactor Future sidebar #233

christianherro opened this issue May 5, 2016 · 8 comments
Assignees

Comments

@christianherro
Copy link
Contributor

The Upcoming Events box above the map and the Future Events sidebar do not line up for events that do not have dates attached to them yet.

For example: http://devopsdays.github.io/events/2016-madison/ does not have dates attached, and shows up in the grey box above the map, but not in the Future Events sidebar.

image
vs.
image

@mattstratton
Copy link
Member

@bridgetkromhout - I assume that events without dates should NOT show up in the grey bar? But we do need to add the "TBD" events to the blue footer.

@mattstratton mattstratton self-assigned this May 5, 2016
@mattstratton mattstratton added this to the 1.5 milestone May 5, 2016
@bridgetkromhout
Copy link
Collaborator

I assume that events without dates should NOT show up in the grey bar?

Correct.

@bridgetkromhout
Copy link
Collaborator

Thanks, @mattstratton! Now one event with a blank start date will appear in the Future section, but not two. To reproduce:

$ grep "^startdate: #" data/events/*
data/events/2016-madison.yml:startdate: # The start date of your event. Leave blank if you don't have a venue reserved yet.
data/events/2016-ohio.yml:startdate: # The start date of your event, in YYYY-MM-DD format. Leave blank if you don't have a date yet.
Bridgets-MacBook-Air:devopsdays-web bridget$

screen shot 2016-05-06 at 12 25 14 pm

Then remove Ohio, and Madison shows up:

Bridgets-MacBook-Air:devopsdays-web bridget$ rm data/events/2016-ohio.yml
Bridgets-MacBook-Air:devopsdays-web bridget$

screen shot 2016-05-06 at 12 25 53 pm

@bridgetkromhout
Copy link
Collaborator

Even with Kiel's year corrected, this also affects Kiel/Seattle. So, more broadly, it's the "same dates can't both show up" issue (now appearing in Future).

@mattstratton
Copy link
Member

Gah. I might have to refactor that entire code - future is a little easier to handle for it because it's built to account for multi-year but we don't need that just yet.

The problem is that I didn't write the code for that initially and I don't completely understand it. I don't know if @m1keil has any ideas?

mattstratton added a commit that referenced this issue May 6, 2016
It's somewhat sloppy, and has the year 2016 hardcoded into it for now, but it works. This removes the issue with the "events on the same date" (only for future footer; the issue still exists for past events for now) and it also takes care of the "year in quotes" issue.

Resolves #247
Resolves #246
Resolves #233
@bridgetkromhout bridgetkromhout changed the title Future events without dates do not display properly in sidebar Refactor Future sidebar May 6, 2016
@mattstratton
Copy link
Member

I'm assuming this is still open for "tech debt" reasons?

@mattstratton
Copy link
Member

Never mind. I see the comments in the PR. Yeah, it's super sloppy but it will do for the moment.

@mattstratton
Copy link
Member

This is probably being handled with #405, which makes everything cleaner.

benjohnson77 pushed a commit to benjohnson77/devopsdays-web that referenced this issue May 22, 2016
benjohnson77 pushed a commit to benjohnson77/devopsdays-web that referenced this issue May 22, 2016
It's somewhat sloppy, and has the year 2016 hardcoded into it for now, but it works. This removes the issue with the "events on the same date" (only for future footer; the issue still exists for past events for now) and it also takes care of the "year in quotes" issue.

Resolves devopsdays#247
Resolves devopsdays#246
Resolves devopsdays#233


Former-commit-id: 73d7178
yvovandoorn pushed a commit that referenced this issue May 22, 2016
yvovandoorn pushed a commit that referenced this issue May 22, 2016
It's somewhat sloppy, and has the year 2016 hardcoded into it for now, but it works. This removes the issue with the "events on the same date" (only for future footer; the issue still exists for past events for now) and it also takes care of the "year in quotes" issue.

Resolves #247
Resolves #246
Resolves #233
yvovandoorn pushed a commit that referenced this issue May 22, 2016
yvovandoorn pushed a commit that referenced this issue May 22, 2016
yvovandoorn pushed a commit that referenced this issue May 22, 2016
It's somewhat sloppy, and has the year 2016 hardcoded into it for now, but it works. This removes the issue with the "events on the same date" (only for future footer; the issue still exists for past events for now) and it also takes care of the "year in quotes" issue.

Resolves #247
Resolves #246
Resolves #233


Former-commit-id: 73d7178
yvovandoorn pushed a commit that referenced this issue May 22, 2016
It's somewhat sloppy, and has the year 2016 hardcoded into it for now, but it works. This removes the issue with the "events on the same date" (only for future footer; the issue still exists for past events for now) and it also takes care of the "year in quotes" issue.

Resolves #247
Resolves #246
Resolves #233
yvovandoorn pushed a commit that referenced this issue May 29, 2016
yvovandoorn pushed a commit that referenced this issue May 29, 2016
yvovandoorn pushed a commit that referenced this issue May 29, 2016
It's somewhat sloppy, and has the year 2016 hardcoded into it for now, but it works. This removes the issue with the "events on the same date" (only for future footer; the issue still exists for past events for now) and it also takes care of the "year in quotes" issue.

Resolves #247
Resolves #246
Resolves #233


Former-commit-id: 73d7178
yvovandoorn pushed a commit that referenced this issue May 29, 2016
It's somewhat sloppy, and has the year 2016 hardcoded into it for now, but it works. This removes the issue with the "events on the same date" (only for future footer; the issue still exists for past events for now) and it also takes care of the "year in quotes" issue.

Resolves #247
Resolves #246
Resolves #233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants