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

Proposal: Updates to support Sitecore 9.x #209

Open
sc-alistairdeneys opened this issue Oct 8, 2019 · 7 comments
Open

Proposal: Updates to support Sitecore 9.x #209

sc-alistairdeneys opened this issue Oct 8, 2019 · 7 comments

Comments

@sc-alistairdeneys
Copy link

I'd like to submit some contributions to add support for the 9.x Sitecore versions. Unfortunately there have been some breaking changes in the APIs which mean we'll need to handle each major Sitecore version differently.

Looking at the v2 branch, it would appear support for the older Sitecore versions has been removed, as would be necessary to get the library building. Therefore, I propose we increment the major version of FakeDB as necessary to add support for each of the Sitecore 9.x versions. Something like:

  • FakeDB 1.x (current release) for Sitecore 7.5 - 8.2
  • FakeDB 2.x (next immediate release) for Sitecore 9.0 - 9.1
  • FakeDB 3.x for Sitecore 9.2 - 9.3

In addition to the versioning changes, I'd also like to make a few changes to make the project easier to work with:

  • Migrate the projects over to NET SDK format (the format used for .net core projects) as it makes management of NuGet packages so much easier.
  • Switch references over to using the official Sitecore NuGet feeds. All Sitecore 9.x versions are available on the feeds.

I intend to make these contributions myself.

Any concerns with this proposal?

@sshushliapin
Copy link
Owner

Hi @sc-alistairdeneys! Thanks for your input!

Versioning approach looks good to me.

Regarding the migration. I'd love to do so but it seems it requires some additional research. Now there is a custom ConfigReader which performs some vital initial configurations. It's like an entry point to the lib! Sounds weird but it did the job for many years and without it nothing works :). And it stops working in SDK projects. Maybe I overlooked smth, but for now that's a stopper.

@sc-alistairdeneys
Copy link
Author

My initial researched didn't show any issues; with an SDK format project everything was still working fine, including all the tests. I'll prep the PR and you can validate @sshushliapin.

@mikeedwards83
Copy link
Contributor

To continue this conversation, will you be supporting 9.3?

@sc-alistairdeneys
Copy link
Author

My initial reaction was to say "yes" for 9.3 support, but then I'm wondering whether we should sit back and see if it's necessary.

The abstractions in Sitecore have got a lot better, to the point that FakeDB shouldn't be required for unit testing on later versions of Sitecore. What do you think @sshushliapin?

I'll continue with adding the 9.x support (looks to be working locally, just need time to check fully) up until version 9.2.

@sshushliapin
Copy link
Owner

The abstractions in Sitecore have got a lot better, to the point that FakeDB shouldn't be required for unit testing on later versions of Sitecore. What do you think @sshushliapin?

Yes, it is not required anymore. TBH, I haven't used FakeDb for the past two years...

I do not plan any further development but if it's possible to make it 9.2/9.3 compatible and it will work, then, of course, I'm ready to support this.

@MKargeti
Copy link

we are using Sitecore 9.2 and using Fake db in our project. any plans of releasing the compatible version of it or we have to re-write the test cases, please confirm

@sshushliapin
Copy link
Owner

According to #211 and #213, I'd expect all the 9.0-9.3 versions to be supported. Any specific scenario that does now work in your case? Otherwise, this issue should be closed.

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

No branches or pull requests

4 participants