prashant2007-wq opened a new pull request, #1536:
URL: https://github.com/apache/airflow-site/pull/1536

   ## Summary
   
   Implements automatic refresh for Meetup events on the Airflow site.
   
   Previously, the Meetups page fetched `/meetups.json` only once when the page 
loaded. This PR updates the client-side meetup list logic so the page 
periodically refetches `/meetups.json` in the background and updates the 
rendered meetup cards without requiring a full page reload.
   
   Closes #49
   
   ## What changed
   
   - Added a refresh interval for Meetup event data.
   - Refactored the Meetup list loading logic into a reusable `loadMeetups()` 
flow.
   - Refetches `/meetups.json` periodically using a cache-busting query 
parameter.
   - Preserves the existing Meetup page UI and layout.
   - Preserves existing search behavior.
   - Preserves existing “Show more” pagination behavior.
   - Keeps already-rendered meetup events if a background refresh fails.
   - Avoids adding any external API dependency or exposing secrets in the 
frontend.
   
   ## Why this approach
   
   The current site already stores Meetup data in:
   
   ```txt
   landing-pages/site/static/meetups.json
   ```
   
   and the Meetups page loads this file client-side.
   
   This PR keeps the existing data source and rendering flow, but adds 
automatic refresh behavior on top of it. This keeps the change small, safe, and 
focused while still solving the issue.
   
   ## Testing
   
   Tested locally with:
   
   ```bash
   cd landing-pages
   yarn run lint:js
   ```
   
   Also verified the Meetup page behavior locally:
   
   - Meetup cards render correctly.
   - Search by city/country still works.
   - “Show more” still works.
   - `/meetups.json` is refetched automatically in the background.
   - Background refresh failure does not clear the currently rendered meetup 
list.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to