Skip to content

make sure locale fallback for get_entries gets assigned to the correct variable#7482

Merged
danielfmiranda merged 3 commits intomainfrom
fix-load-more-button
Sep 24, 2021
Merged

make sure locale fallback for get_entries gets assigned to the correct variable#7482
danielfmiranda merged 3 commits intomainfrom
fix-load-more-button

Conversation

@Pomax
Copy link
Contributor

@Pomax Pomax commented Sep 24, 2021

Closes #7481

To test, you'll need a copy of the stage db, as load_fake_data does not have enough blog posts to reproduce this behaviour.

STR:

  • load the /blog page
  • click the "load more" button
  • more entries should load.

Compared to the current behaviour on https://foundation.mozilla.org/blog where clicking the button causes a server error 500 on the Fetch url (see dev tools "network tab" when clicking the button to confirm that error).

@mofodevops mofodevops temporarily deployed to foundation-s-fix-load-m-lysqbr September 24, 2021 16:15 Inactive
@Pomax Pomax temporarily deployed to foundation-s-fix-load-m-lysqbr September 24, 2021 16:17 Inactive
@github-actions
Copy link

This PR introduces visual differences. Click here to inspect the diffs.

1 similar comment
@github-actions
Copy link

This PR introduces visual differences. Click here to inspect the diffs.

@danielfmiranda danielfmiranda temporarily deployed to foundation-s-fix-load-m-lysqbr September 24, 2021 17:28 Inactive
Copy link
Collaborator

@danielfmiranda danielfmiranda left a comment

Choose a reason for hiding this comment

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

Hi Pomax! Just tested this and it seems to be working well. Approved!

@danielfmiranda danielfmiranda merged commit 038cd09 into main Sep 24, 2021
@danielfmiranda danielfmiranda deleted the fix-load-more-button branch September 24, 2021 17:38
@github-actions
Copy link

This PR introduces visual differences. Click here to inspect the diffs.

stevedya pushed a commit that referenced this pull request Sep 27, 2021
…t variable (#7482)

* make sure locale fallback for get_entries gets assigned to the correct variable

* Update network-api/networkapi/wagtailpages/pagemodels/index.py

Co-authored-by: Daniel Miranda <manieldiranda@gmail.com>
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.

Load more results button on Blog doesn't work

3 participants