chai icon indicating copy to clipboard operation
chai copied to clipboard

chai-subset is unmaitained

Open GustavoOS opened this issue 9 months ago • 8 comments

Hi

As in https://github.com/debitoor/chai-subset/issues/84 , chai-subset is unmaitained. The biggest contributor no longer has owner rights, but proposed to fork and maintain it. Is chaijs interest in owning the fork?

GustavoOS avatar May 13 '24 17:05 GustavoOS

Sure. Happy to add it to the org.

keithamus avatar May 13 '24 17:05 keithamus

it may also be worth just building this functionality into chai itself, as some variant of includes

much of the logic in chai-subset exists in chai already, just not for this particular usage (e.g. recursively checking equality of nested types)

maybe this could just be achieved by some modifier of includes ("partial" or something, or includes.subset)

just a thought

43081j avatar May 13 '24 18:05 43081j

I am happy to do that, but we should only do that after transferring or at least discussing with the owners/maintainers.

keithamus avatar May 13 '24 20:05 keithamus

Hey guys, I'm the main contributor to the chai-subset while I was working in Debitoor. I couldn't convince them to transfer ownership. I think it should be fine to add it into core functionality of chai of fork the repo and support the fork. The question is what is preferrable for the chaijs org?

eagleeye avatar May 14 '24 07:05 eagleeye

I think it would be great to clarify our intent to debitoor before moving forward. There's a strong chance if we fork the library into this org, or otherwise integrate changes into core, then the debitoor library will be rendered obsolete. I don't want that to come as a surprise to them. So I think a good next step is perhaps contacting them again, if you don't mind?

In terms of next steps beyond that, I think we can look at what it'll take to integrate directly into core (PRs welcome :wink:) but also I think having a fork (or ideally the source repo) under the chaijs org for archival purposes would be a good step also.

keithamus avatar May 14 '24 09:05 keithamus

Thanks for the convo and for letting us know! Both here and in https://github.com/debitoor/chai-subset/issues/84 :). 👋 Adrián from SumUp (formerly Debitoor) here.

While debitoor as an org is not active, it's now part of @sumup :) - and while we do maintain some open source software (https://github.com/sumup-oss), as you have seen, chai-subset (https://github.com/debitoor/chai-subset/issues) is not among the well-kept ones.

Feel free to fork and integrate the codebase into chaijs :)

For the ownership transfer I'd have to look into the process to transfer it (might take longer). With the matter of the original repo going obsolete - maybe we could add a notice to the readme and mark it as deprecated? (given that the last commit is from 2017, 7 years ago)

zetxek avatar May 15 '24 08:05 zetxek

Cool, I'll prepare a PR to chai in the nearest future. I believe that chai-subset is a good fit for core functionality of chai.

eagleeye avatar May 15 '24 09:05 eagleeye

I hope you don't mind that I hacked on this quickly while waiting at a airport. I tried to make sure that the history was preserved in doing this.

koddsson avatar May 20 '24 09:05 koddsson