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

Issue #109: Update migration guide #249

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

sam-byng
Copy link
Contributor

#109: Update migration guide based on experience working with issue #243

Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

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

No - please do not start mentioning poms and SBT stuff. Users should educate themselves on their preferred build tools. Pekko is neutral and should not complicate our docs with pom trivialities.

@sam-byng sam-byng marked this pull request as draft March 16, 2023 12:22
@sam-byng sam-byng marked this pull request as ready for review March 16, 2023 12:28
Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

Just one thing I would mention

docs/src/main/paradox/project/migration-guides.md Outdated Show resolved Hide resolved
@sam-byng sam-byng marked this pull request as draft April 28, 2023 17:45
@sam-byng sam-byng marked this pull request as ready for review April 28, 2023 17:46
@kw217
Copy link
Contributor

kw217 commented May 5, 2023

Looks like all the comments have been addressed - can this be approved and merged?

@mdedetrich
Copy link
Contributor

mdedetrich commented May 5, 2023

Checking this now. @pjfanning Cna you also check since we require your approval for PR to be merged.

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

lgtm

@pjfanning
Copy link
Contributor

I must admit to not liking the categorisation of the changes and the duplication of the changes because of the artificial categorisation.

@mdedetrich
Copy link
Contributor

I must admit to not liking the categorisation of the changes and the duplication of the changes because of the artificial categorisation.

Can you rephrase, looks fine to me?

* Configs in `application.conf` use "pekko" prefix instead of "akka"

In config files:
* Configs use `pekko` prefix instead of `akka`
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove the reference to 'application.conf' ?

Copy link
Contributor

Choose a reason for hiding this comment

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

To be more accurate we could use *.conf instead since some conf files are reference.conf and others are applciation.conf.

in fact from checking the codebase it should all be reference.conf, after all the idea is that reference.conf is whats used for libraries and application.conf is whats used for applications.

Copy link
Contributor

Choose a reason for hiding this comment

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

it's a migration guide for users migrating their own code bases - they will be updating their own application.conf files

some lib maintainers might have reference.conf files

I suppose, some users use '.json' files for configs as well (because typesafe config supports those too).

I would still prefer if this section, tries to name some of the more common config files to help out users to know what to look for - imagaine if the Akka based app that is being migrated was written 5 years ago and the original writers have moved on.

Copy link
Contributor

Choose a reason for hiding this comment

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

it's a migration guide for users migrating their own code bases - they will be updating their own application.conf files

Right but its also relevant to libraries which integrate with Pekko, in which case they would be dealing with reference.conf files and not application.conf. Not all users are applications.

I suppose, some users use '.json' files for configs as well (because typesafe config supports those too).

And also *.prop files too which afaik are compatible with HOCON format.

I would still prefer if this section, tries to name some of the more common config files to help out users to know what to look for - imagaine if the Akka based app that is being migrated was written 5 years ago and the original writers have moved on.

In that case the easiest thing would be to search for akka prefix in files that are known to hold configurations which would be *.conf/*.prop and *.json.

* Where class names have "Akka" in the name, the Pekko ones have "Pekko" - e.g. `PekkoException` instead of `AkkaException`
* Configs use `pekko` prefix instead of `akka`

In Documentation:
Copy link
Contributor

@pjfanning pjfanning May 5, 2023

Choose a reason for hiding this comment

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

I think this does not apply to migration use case. It's useful advice to people contributing code to Pekko - but it is not really something that someone migrating their company's projects needs to know about.

In Documentation:
* Where appropriate, text should refer to `Pekko` instead of `Akka`
* URLs linking to files in https://doc.akka.io/docs/akka/ should instead point at https://pekko.apache.org/docs/pekko/

* We have changed the default ports used by the pekko-remote module.
Copy link
Contributor

Choose a reason for hiding this comment

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

this port information is useful but it is now sort of orphaned by the artificial breaking up of the migration info into categories

there are not so many bullet points that we need to split it up like this - especially when we then stick some of the bullet points off in 'no category'


## TBC:
We are still investigating the effects of how the package name changes affect the @ref:[Persistence](../persistence.md)
Copy link
Contributor

Choose a reason for hiding this comment

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

See https://lists.apache.org/thread/v7c08l4bn66o4o2go0h7xzzl8pz0tr6p

I can update this section in an independent PR

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.

None yet

4 participants