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

feat(Pages/News): Regenerate Function #1168

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

SpeedyD
Copy link
Contributor

@SpeedyD SpeedyD commented Dec 29, 2024

Takes the text data and re-parses it! Useful for regenerating mentions without updating post time or user or whatnot. :)

*
* @return \Illuminate\Http\RedirectResponse
*/
public function postRegenPage(Request $request, PageService $service, $id) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit-pick but i think this would be better to be more descriptive like postRegeneratePageText or something! otherwise looks good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

..It's just a function name. In an attempt to be consistent with other functions, I use a simple get and post combination, to the point.. What it does is explained in the context box right above it..

I don't see a reason to rename the function?

Copy link
Contributor

Choose a reason for hiding this comment

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

there's no particular reason aside from stylistic choice, I just think that the extra information in the function name makes sense and follows along some of the others that exist in LK! you don't have to agree or follow that though

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems clear enough to me as-is.

@itinerare itinerare added enhancement New feature or request needs review Pull requests that are pending community review labels Jan 4, 2025
@itinerare itinerare added reviewed Pull requests that have received community review and are pending merge and removed needs review Pull requests that are pending community review labels Jan 9, 2025
@itinerare itinerare merged commit fbaa40c into corowne:develop Jan 9, 2025
@SpeedyD SpeedyD deleted the feat/regenerate-pages-sales branch January 12, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request reviewed Pull requests that have received community review and are pending merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants