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

Update the list of global events #625

Merged
merged 8 commits into from
Apr 11, 2016
Merged

Update the list of global events #625

merged 8 commits into from
Apr 11, 2016

Conversation

lpinca
Copy link
Member

@lpinca lpinca commented Apr 1, 2016

Follow up of #614.
This updates events.md to fix the Spain region issue.

I've used my own API key for meetup.com and no API key for node-geocoder (it seems to work fine).

@ghost
Copy link

ghost commented Apr 1, 2016

Travis build passed 👍

@fhemberger
Copy link
Contributor

  1. lat/lng coordinates for the following events were deleted. Was this intentional?
    • Chennai NodeSchool
    • Jakarta NodeSchool
    • NodeSchool Kanpur
    • Tabriz NodeSchool
    • Tehran NodeSchool
    • NodeSchool Tokyo
    • Chernivtsi NodeSchool
    • Dublin NodeSchool
    • Faro NodeSchool
    • Nodeschool Lodz
    • NodeSchool Madrid
    • Lyon NodeSchool
    • NodeSchool Strasbourg
    • NodeSchool Stuttgart
    • NodeSchool Vienna
    • NodeSchool Cleveland
    • NodeSchool: LA Edition
    • NodeSchool Manchester
    • NodeSchool Philadelphia
    • NodeSchool Raleigh-Durham
    • NodeSchool DC
    • NodeSchool Vancouver
    • Western Massachusetts NodeSchool
  2. We should adjust the event script:
    • Collapse new lines in description texts. One entry added 390 empty new lines.
    • We don't show things like member count (which is also changing constantly), I vote for dropping at least this field to keep future diffs easier to handle.

@lpinca
Copy link
Member Author

lpinca commented Apr 7, 2016

It wasn't intentional and I noticed the empty lines issue.
The scripts need indeed some love.

@lpinca
Copy link
Member Author

lpinca commented Apr 7, 2016

I'll try to fix this later or tomorrow.

@lpinca
Copy link
Member Author

lpinca commented Apr 8, 2016

The new line issue seems to be a bug in js-yaml:

const data = yaml.safeLoad(contents);
const dump = yaml.safeDump(data); // => unwanted new lines.

See nodeca/js-yaml#221, nodeca/js-yaml#222. Not sure what to do about it. Those issues seem to be fixed in master and it looks like that a new version of js-yaml will be released soon but the new dumper uses a sligtly different syntax so we will have a lof of diff noise.

Maybe it makes sense to rebuild events.md from scratch.

@fhemberger
Copy link
Contributor

Hmm, in the meantime, how about something like description.replace(/\n{3,}/g, '\\n\\n')?

@lpinca
Copy link
Member Author

lpinca commented Apr 8, 2016

@fhemberger I tried that, not so useful, the problem is that the major part of the new lines are added when data is dumped with yaml.dump(store).

We can probably work around that issue using the lineWidth option (e.g. setting it to something like 2000) but we will generate so much noise that it will be very hard to review the changes.

That's why I think it's probably better to regenerate events.md from scratch.

@lpinca
Copy link
Member Author

lpinca commented Apr 9, 2016

I've updated the pr to work around the js-yaml issue with spurious new lines.
Now a line width is not enforced so yaml.dump() works as expected.

There is a lot of diff noise but I tried to make the review process a little "easier" by splitting the changes over multiple commits.

If we wait for the next version of js-yaml, 52f4895 can be removed.

if (
title.includes('find a tech job') ||
title.includes('nodeschool') ||
/ mongodb (?:user group|meet ?up)$/.test(title) ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not title.includes('mongodb')?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because there are some MongoDB+Node.js events.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, ok. 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also a lot of irrelevant events like Angular Ember etc but it's kinda hard to have ONLY relevant Node.js events. This a flaw in Meetup categories and topics.

@fhemberger
Copy link
Contributor

I haven't run the scripts myself, but the overall changes look good to me.

@lpinca f974616, 650ddc7, 29ab04f and d4931de look like manual changes. Will they be overwritten the next time someone runs the script?

@lpinca
Copy link
Member Author

lpinca commented Apr 11, 2016

They will be updated yes, but not deleted. New events will be added.
The purpose of 29ab04f is exactly to prevent it from being overwritten.

@fhemberger
Copy link
Contributor

Great, thank you!

@lpinca
Copy link
Member Author

lpinca commented Apr 11, 2016

@fhemberger I've added the requested comments, let me know if they should be changed/improved.

@fhemberger
Copy link
Contributor

@lpinca LGTM! 👍

@fhemberger fhemberger merged commit 45bf259 into master Apr 11, 2016
@ghost ghost deleted the update/events-list branch April 11, 2016 15:54
@lpinca lpinca mentioned this pull request Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants