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

Fix/116 admin.js file merged into the main JS file. #118

Merged
merged 1 commit into from May 6, 2022
Merged

Conversation

faisal-alvi
Copy link
Member

Description of the Change

Closes #116

Alternate Designs

n/a

Verification Process

  1. Switch to the develop branch.
  2. Go to Settings > Discussion.
  3. Click Clear cache.
  4. The page reloads, instead of AJAX should run.
  5. Move to this PR’s branch fix/116.
  6. Build the project by npm run build.
  7. Reload the page and click Clear cache.
  8. The AJAX should run.

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Fixed - Avatar cache not being cleared.

Credits

Props @thefrosty @jeffpaul @faisal-alvi

@faisal-alvi faisal-alvi added this to the 2.4.0 milestone May 5, 2022
@faisal-alvi faisal-alvi requested a review from a team May 5, 2022 14:15
@faisal-alvi faisal-alvi self-assigned this May 5, 2022
@faisal-alvi faisal-alvi requested review from peterwilsoncc and removed request for a team May 5, 2022 14:15
@thefrosty
Copy link

thefrosty commented May 5, 2022

Without the removal of the assets line in .distignore: https://github.com/10up/simple-local-avatars/blob/develop/.distignore#L5 won't any JS files in there still be ignored on build and deploy to dot org?

Ahh I see, the other JS is in dist. 👍🏼

Copy link
Contributor

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

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

Looks good to me, tests well.

@jeffpaul jeffpaul merged commit e858a93 into develop May 6, 2022
@jeffpaul jeffpaul deleted the fix/116-2 branch May 6, 2022 01:47
@faisal-alvi faisal-alvi restored the fix/116-2 branch May 6, 2022 09:09
@faisal-alvi
Copy link
Member Author

@peterwilsoncc thanks for the quick review! somehow a portion of admin.js was missed in migration, #120 is raised for that.

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.

Incorecct Location of admin.js
4 participants