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

complete renaming tenup_autotweet -> autotweet #49

Merged
merged 21 commits into from
Nov 15, 2019

Conversation

adamsilverstein
Copy link

@adamsilverstein adamsilverstein commented Oct 17, 2019

Description of the Change

Complete the renaming process, removing remaining references to "tenup_autotweet"

Completes fixes for #22.

Benefits

More consistent naming, namespaces for translations.

Possible Drawbacks

Any existing hook uses need name changes. However hook names were already changed in 1.0.0 and only one client use is impacted since this has been internal.

Verification Process

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.

Applicable Issues

Changelog Entry

Changed

  • Hook names have changed in the 1.0.0 release, pre-1.0.0 uses need to be adjusted to the new namespace. The part of the hook that previously was tenup_auto_tweet is now autotweet.

@adamsilverstein adamsilverstein added this to the 1.0.0 milestone Oct 17, 2019
@adamsilverstein adamsilverstein added the type:enhancement New feature or request. label Oct 17, 2019
Copy link
Member

@johnwatkins0 johnwatkins0 left a comment

Choose a reason for hiding this comment

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

@adamsilverstein Looks good. See my comment for one more.

FWIW, tested this branch in WP 5.3 -- worked fine 😄

README.md Show resolved Hide resolved
@johnwatkins0 johnwatkins0 self-assigned this Oct 29, 2019
@johnwatkins0 johnwatkins0 requested review from jeffpaul and johnwatkins0 and removed request for johnwatkins0 October 29, 2019 02:39
@johnwatkins0 johnwatkins0 mentioned this pull request Oct 29, 2019
5 tasks
…ort feature name to 'auto-share-for-twitter'
@johnwatkins0
Copy link
Member

@adamsilverstein @jeffpaul This is ready for review. I continued on the branch originally intended for renaming things to "Autotweet." I've updated all "autotweets" of various forms to "autoshare." I also changed the plugin name to "Autoshare for Twitter" and changed the repo URL, path, text domain, post type support feature name, and main plugin file to autoshare-for-twitter. Let me know if you see anything else.

@jeffpaul
Copy link
Member

@johnwatkins0
Copy link
Member

Thanks, @jeffpaul . Leaving auto-share-for-twitter.php in there was an oversight. Fixed now.

@jeffpaul
Copy link
Member

My only other question, thinking out loud here, is whether we'd intend to create an Auto Share for (Facebook, LinkedIn, etc.) in which case we'd want some of the references here to denote auto-share-for-twitter / autoshare-for-twitter instead of just autoshare. I don't think it's very likely that we would create additional autoshare plugins in the near future, so I think we're ok to stick with the shorter autoshare references throughout the code.

@jeffpaul
Copy link
Member

Also worth updating CHANGELOG.md for the 1.0 release to include:
- Plugin renamed to "Auto Share for Twitter". (props @johnwatkins0 via #49 )
after the "Initial public release" line.

@johnwatkins0
Copy link
Member

@jeffpaul That's a good point re: other potential versions of "Autoshare" for other platforms. I could do another round of search-replacing in the code to change autoshare to autoshare-for-twitter, Autoshare to AutoshareForTwitter etc. without too much effort. It would make everything more verbose, but that's not a huge problem. I wonder, though, if 10up were to someday build similar tools for other platforms, would we actually build them as individual plugins for each? It seems more likely we'd group the functionality under a single plugin.

I'd be interested in @adamsilverstein view before I go CMD+F'ing in the project some more.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
readme.txt Show resolved Hide resolved
@adamsilverstein
Copy link
Author

@johnwatkins0 I guess since we are submitting the plugin as "Autoshare for Twitter" it is going to get sutoshare-for-twitter as its plugin slug, it does make sense to keep all the naming and namespacing the same across the plugin.

@jeffpaul
Copy link
Member

jeffpaul commented Nov 5, 2019

Ok, so to confirm we'll standardize on autoshare-for-twitter across the board. I'll update the repo name to reflect that and let @johnwatkins0 handle the remaining find/replace work.

@johnwatkins0
Copy link
Member

@adamsilverstein @jeffpaul Took another pass through to replace Autoshare namespaces throughout with the equivalent Autoshare for Twitter namespaces. It's all working locally, but I'm a little nervous about how many changes there are, so I aim to go take another close look with a round of testing later in the week. Unless someone else is available to give it all another set of eyes.

jeffpaul
jeffpaul previously approved these changes Nov 7, 2019
Copy link
Member

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

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

Made a couple small updates, otherwise looks good to me, nice work!

Copy link
Member

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

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

nice work @johnwatkins0, I think we're clear to merge this when you're ready

@jeffpaul jeffpaul removed the request for review from ryanwelcher November 14, 2019 21:34
@johnwatkins0 johnwatkins0 requested review from johnwatkins0 and removed request for johnwatkins0 November 15, 2019 02:41
@johnwatkins0 johnwatkins0 merged commit b262d10 into develop Nov 15, 2019
@johnwatkins0 johnwatkins0 deleted the fix/rename-part-2 branch November 15, 2019 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants