Skip to content

Conversation

@renato
Copy link
Contributor

@renato renato commented Apr 24, 2025

Drenmi and others added 24 commits October 30, 2023 12:08
…ment (#1)

Passing the respect_plugin_enabled argument to #add_to_serializer as a positional argument is deprecated. It is now expected to be a keyword argument. This PR adds the keyword.
* DEV: replace bootbox with dialog service

* DEV: add discourse-compatibility file
This was causing a crash on the `/admin/plugins/ratings page`. Calling an action with a string on `DButton` is not supported anymore at all.
# Conflicts:
#	assets/javascripts/discourse/components/rating-actions.js
#	assets/javascripts/discourse/components/rating-destroy.js
#	assets/javascripts/discourse/components/rating-migrate.js
#	assets/javascripts/discourse/components/rating-object-list.js
#	assets/javascripts/discourse/components/rating-object.js
#	assets/javascripts/discourse/components/rating-star.js
#	assets/javascripts/discourse/components/rating-type-chooser.js
#	assets/javascripts/discourse/components/rating-type.js
#	assets/javascripts/discourse/components/select-rating.js
#	assets/javascripts/discourse/components/star-rating.js
#	assets/javascripts/discourse/controllers/admin-plugins-ratings.js
#	assets/javascripts/discourse/initializers/initialize-ratings.js
#	assets/javascripts/discourse/templates/components/rating-destroy.hbs
#	assets/javascripts/discourse/templates/components/rating-migrate.hbs
@merefield
Copy link
Member

thanks @renato this is fantastic

@merefield
Copy link
Member

@renato is this still wip? should it be Draft?

@renato renato marked this pull request as draft April 24, 2025 16:23
@renato
Copy link
Contributor Author

renato commented Apr 24, 2025

I converted it to a draft, I'm just double-checking if there's anything accidentally overridden from the existing commits on this repo, and will do a smoke-test. Then I can mark it as ready again

@renato renato marked this pull request as ready for review April 24, 2025 16:46
@renato
Copy link
Contributor Author

renato commented Apr 24, 2025

I noticed a small issue where the ratings aren't displayed immediately after posting, only after a refresh, but I also tested on an instance that has an older version and it behaves the same, so doesn't look like a regression

@renato renato changed the title DEV: wip/tentative upstream update DEV: update upstream with Discourse's changes Apr 24, 2025
@renato
Copy link
Contributor Author

renato commented Apr 24, 2025

It's ready for review @merefield. There was a conflict with a commit from today that I kept paviliondev's version

@merefield
Copy link
Member

@jumagura do you wish to handle?

@jumagura
Copy link
Member

Hi @renato. Thanks a lot for this contribution! 🙌 I’ll start reviewing it. Really appreciate the time and effort you've put into it.

@jumagura jumagura merged commit b3f7241 into paviliondev:main Apr 28, 2025
4 checks passed
@renato
Copy link
Contributor Author

renato commented Apr 28, 2025

Hey @jumagura, just one thing I just realized, the .discourse-compatibility entries won't make much sense with the different tree, it's probably a good idea to remove those entries. Thank you!

@jumagura
Copy link
Member

Thank you! I overlooked 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.

10 participants