engineersftw / website

Engineers.SG
https://www.engineers.sg
17 stars 15 forks source link

How does /events get the current data? #30

Closed sayanee closed 6 years ago

sayanee commented 6 years ago

Referring to https://github.com/engineersftw/website/blob/master/app/services/webuild_events_service.rb#L2

def get_events(event_url='https://webuild.sg/api/v1/events')

Does it already take the list of events from the OpenShift URL?

http://api-webuild.7e14.starter-us-west-2.openshiftapps.com/events

cc @miccheng 🙇‍♀️ Thanks 🙏

miccheng commented 6 years ago

We are overwriting the URL with the environment variable. This service class is already using the new URL. The content is cached for a while (maybe 30 minutes). So it should eventually reflect the correct events.