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

remove a bunch of ramda #964

Closed
wants to merge 13 commits into from
Closed

Conversation

hejkal
Copy link

@hejkal hejkal commented Dec 13, 2024

NOTE: DO NOT discuss internal CommitChange information in your PR; this PR will be public.
Link back to the issue in the Tix repo when you need to do that.

Copy link
Member

@wwahammy wwahammy left a comment

Choose a reason for hiding this comment

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

Looking good! I'm looking forward to getting rid of ramda.

client/js/campaigns/show/choose-gift-options-modal.js Outdated Show resolved Hide resolved
client/js/campaigns/show/metrics-and-contribute-box.js Outdated Show resolved Hide resolved
client/js/campaigns/timeline.js Outdated Show resolved Hide resolved
client/js/common/class-object.js Outdated Show resolved Hide resolved
client/js/common/request.js Outdated Show resolved Hide resolved
client/js/recurring_donations/edit/index.es6 Outdated Show resolved Hide resolved
client/js/components/supporter-address-form.es6 Outdated Show resolved Hide resolved
client/js/recurring_donations/edit/index.es6 Outdated Show resolved Hide resolved
client/js/common/direct-to-s3-upload.es6 Outdated Show resolved Hide resolved
Copy link
Member

@wwahammy wwahammy left a comment

Choose a reason for hiding this comment

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

So far, this is great work @hejkal, thank you so much!

I've got some more to look through but I think this PR is actually too big already. The lack of front end and integration tests makes this really hard to guarantee we're not breaking anything. It's obviously good practice in general but given that it's open source, we have a secondary reason: if I (or theoretically anyone) wants to upstream any of the work, it becomes harder to manage cherry-picking. As I often say, doing things in the open incentivizes good engineering practices 😄

All that said, outside of a few things I've mentioned, I don't think it make sense to do go back and separate this all. Let's wrap up the work that's already been done and do additional changes in separate, more easily digestable and potentially reusable PRs.

client/js/campaigns/show/page.js Outdated Show resolved Hide resolved
client/js/campaigns/show/page.js Outdated Show resolved Hide resolved
client/js/recurring_donations/edit/index.es6 Show resolved Hide resolved
client/js/recurring_donations/edit/index.es6 Outdated Show resolved Hide resolved
client/js/settings/index/email-settings/index.js Outdated Show resolved Hide resolved
const emailLists$ = flyd.map(R.prop('body'), request({method: 'get', path: pathPrefix + '/email_lists'}).load)
state.selectedTagMasterIds$ = flyd.map(R.map(ls => ls.tag_master_id), emailLists$)
const emailLists$ = flyd.map(r => r.body, request({method: 'get', path: pathPrefix + '/email_lists'}).load)
state.selectedTagMasterIds$ = flyd.map(emailLists$.map(ls => ls.tag_master_id))
Copy link
Member

Choose a reason for hiding this comment

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

This one is wrong, I think.

Copy link
Author

Choose a reason for hiding this comment

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

Can you say more about what looks wrong here? As far as I can tell it's the same as other similar places, switching from R.prop('thing') to i => i.thing and from R.map(f, thing) to thing.map(f)

client/js/recurring_donations/edit/get-params.js Outdated Show resolved Hide resolved
@hejkal hejkal mentioned this pull request Dec 16, 2024
@hejkal hejkal force-pushed the moving-away-from-ramda branch from 4421251 to 3316d90 Compare December 16, 2024 21:03
@hejkal
Copy link
Author

hejkal commented Dec 19, 2024

closing this because I split it out into smaller chunks

@hejkal hejkal closed this Dec 19, 2024
@wwahammy wwahammy deleted the moving-away-from-ramda branch December 21, 2024 18:20
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.

2 participants