Approved status missing on a new user

AI-generated summary

watchmanmonitor reported a bug where a newly approved user remained marked as “Approved: No” without an approval button, despite being removed from the pending list. The issue persisted after updating to the latest Discourse version and rebuilding the Docker container, accompanied by specific errors detailed in gist links. zogstrip asked for timing details, and watchmanmonitor provided screenshots of the error logs occurring throughout the day. Suspecting a missing model, sam identified the root cause, while codinghorror noted the expected fix timeline. sam subsequently confirmed the issue was resolved via a specific GitHub commit.

I was on
https://github.com/discourse/discourse/compare/8ad2db7d2b159e37063f89f6db8527c63594f3c9...master

but I’ve updated my self-hosted instance to latest and an issue remains.

I approved a new user, and it was removed from the pending list, but now they show as Approved: No, without a button to approve them.

This is the error that happened

「いいね!」 1

When did that error happen?

Many times today, here’s a screenshot (this is in CST). I’ve highlighted the time when I was approving the account.

I see that my docker image must be out of date, so I’ve just pulled, will rebuild the container in a few.

I’ve just fully rebuilt (and added newrelic this time) and registered a new test user.

the user is not approved, there is no Approve button when viewing it via Admin

I get this error:

I bet I could attempt to approve it from the pending user list, but will wait to hear back

「いいね!」 3

Smells like a missing model.

Know where I could find a new model? :wink:

I think I’m stuck until one shows up here:

https://github.com/discourse/discourse/compare/5a09482b0fae025bf991a13a10a24782a62e0043...master

Hopefully @sam can fix this Australia Monday.

「いいね!」 2

Fixed per:

https://github.com/discourse/discourse/commit/da4c377277652773c2aac111afb041d26f7304eb

「いいね!」 5