Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

✨ Added member impersonation#1497

Merged
naz merged 6 commits intoTryGhost:masterfrom
naz:members-login-link
Feb 27, 2020
Merged

✨ Added member impersonation#1497
naz merged 6 commits intoTryGhost:masterfrom
naz:members-login-link

Conversation

@naz
Copy link
Copy Markdown
Contributor

@naz naz commented Feb 21, 2020

refs TryGhost/Ghost#11607

@kevinansfield single thing that I have in question for this PR is the use of adapter on member model
2b98a3d, instead of a separate model for signin_url resource. Do you think this is clean approach or should be done differently?

@naz naz requested a review from kevinansfield February 21, 2020 05:21
naz added 3 commits February 25, 2020 11:28
- Adds "impersonate" button which would be triggering a popup window
- The html structure was changed to resemble closer the structure on other views (e.g. tags)
- This function doesn't fit to it's own model just yet and is always used in context of the member.
- Also the URL strcucture is different to standard resources, so having an adapter made constructing custom URL a lot simpler
@naz naz force-pushed the members-login-link branch from c2fab0e to db3e089 Compare February 25, 2020 03:28
Copy link
Copy Markdown
Member

@kevinansfield kevinansfield left a comment

Choose a reason for hiding this comment

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

I wouldn't use a non-model-associated adapter here. It would be a lot cleaner to put the ajax call directly into the Member.fetchSigninUrl method.

@naz naz requested a review from kevinansfield February 26, 2020 08:16
@naz
Copy link
Copy Markdown
Contributor Author

naz commented Feb 26, 2020

@kevinansfield refactored the adapter call to a straight ajax in the member model. Will be merging this later today unless there are any other objections 😉

@naz naz force-pushed the members-login-link branch from db3e089 to 5028737 Compare February 26, 2020 08:17
@naz naz requested a review from kevinansfield February 26, 2020 10:05
@naz naz changed the title Added member impersonation ✨ Added member impersonation Feb 27, 2020
@naz naz merged commit b192917 into TryGhost:master Feb 27, 2020
@naz naz deleted the members-login-link branch February 27, 2020 03:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants