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

Add Action mailbox SES #127

Merged
merged 60 commits into from
Jul 18, 2024
Merged

Add Action mailbox SES #127

merged 60 commits into from
Jul 18, 2024

Conversation

ssunday
Copy link
Contributor

@ssunday ssunday commented Jun 20, 2024

Hot mess of a PR. Very much not done.

Basically, this is attempting to merge in https://github.com/bobf/action_mailbox_amazon_ingress

- Need to confirm license changes for other folks

  • Need to finish switching to rspec
  • Need to figure out how to get active storage migration in dummy app
  • Add docs
  • Test it actually works

I'm not sure when I'll get to wrapping this up/working on this again...so anyone is free to bring it to the finish line.

@ssunday ssunday changed the title Add Action mailbox SES / Switch to RSPEC Add Action mailbox SES / Switch to RSpec Jun 20, 2024
@mullermp mullermp marked this pull request as ready for review June 20, 2024 15:44
@mullermp mullermp marked this pull request as draft June 20, 2024 15:44
@mullermp
Copy link
Contributor

Thanks for starting this effort. We do support older Rails 5.2. We are not opposed to a major version bump that has a new minimum rails of 7 if it makes things simpler. As mentioned, we're not opposed to rspec either, let's just make sure that the existing test cases are covered. This will probably be a large change and review for sure. Is there a way to do this in manageable bite sized pieces? Maybe we do the rspec conversion of aws-sdk-rails as is, without the action mailbox changes, and then we do that one?

@ssunday
Copy link
Contributor Author

ssunday commented Jun 20, 2024

@mullermp agreed with breaking it out.

@mullermp
Copy link
Contributor

There are a lot of conflicts here. Let me know how you want to proceed before making sweeping changes.

@ssunday
Copy link
Contributor Author

ssunday commented Jun 24, 2024

@mullermp I'm going to rebase and just get the important mailbox stuff in (and its tests). I'm working on it!

@ssunday
Copy link
Contributor Author

ssunday commented Jun 24, 2024

not working yet, routing isn't functional..like the routes aren't being mounted.

@ssunday ssunday changed the title Add Action mailbox SES / Switch to RSpec Add Action mailbox SES Jun 24, 2024
@ssunday
Copy link
Contributor Author

ssunday commented Jun 24, 2024

i'll continue looking into it eventually

@mullermp
Copy link
Contributor

@bobf Would you be interested in reviewing and helping get this into aws-sdk-rails?

@ssunday
Copy link
Contributor Author

ssunday commented Jun 24, 2024

Got tests working. I will need to test on an app this works e2e, and we also need to confirm everyone is OK with the license.

@mullermp
Copy link
Contributor

You should add it into sample_app and then a section on the README for how to test with it.

@ssunday
Copy link
Contributor Author

ssunday commented Jun 24, 2024

@mullermp yep, I need to pull in the docs from the other repo.

@ssunday
Copy link
Contributor Author

ssunday commented Jun 24, 2024

@mullermp I'm not sure how to locally test with the sample_app (I mean in this use case specifically).

@bobf
Copy link

bobf commented Jun 24, 2024

@bobf Would you be interested in reviewing and helping get this into aws-sdk-rails?

Yep, sure. I'll try to find some time this week.

@ssunday
Copy link
Contributor Author

ssunday commented Jun 28, 2024

I have another speculative fix for the tests/database issue—I'll push it up once I separately do an e2e test on a project that these changes even work 🤡

@bobf
Copy link

bobf commented Jun 29, 2024

@ssunday @mullermp I've scanned through the code (admittedly not very thoroughly, but I did read everything) and this all looks good to me.

Is there any specific feedback you want from me, or anything I can do to help this along ?

@ssunday I've lost track of how many times I've thanked you for all this hard work but it still seems insufficient - it's great to see somebody taking charge of this.

@ssunday
Copy link
Contributor Author

ssunday commented Jun 29, 2024

@bobf Early next week I'm going to get this code e2e tested on a real project so that'll test if it actually works in the wild. Once that's done, I just have to get tests working (which I have a speculative change I didn't push up since...I didn't want to push if the e2e test proved things needed more work anyway). So I've got those two things handled/planned for next week.

The thing I'm not sure of is licensing change since other people worked on this and I'm just doing the 'glue' work of getting it into this repo. Do they need to sign-off on it being into this repo with a diff license or is that not necessary with it from an MIT-origin repo?

Thank you for like getting this whole ball rolling and actually doing the hard work haha. This integration has greatly improved QOL on two of my projects. Having it as a proper package is just great for long term maintenance...

@bobf
Copy link

bobf commented Jun 29, 2024

I believe I'm able to authorise a licence change. As long as the change is to a similar license (Apache, BSD, etc. then all good with me).

@ssunday
Copy link
Contributor Author

ssunday commented Jul 2, 2024

Looks like it's working e2e.

@ssunday ssunday marked this pull request as ready for review July 2, 2024 15:17
@mullermp
Copy link
Contributor

mullermp commented Jul 2, 2024

Were you able to test locally and is it possibly to add a "how to test" entry and integrate with sample app in this repo?

@mullermp
Copy link
Contributor

I'll be able to help with this tomorrow and hopefully we can get this merged by early next week.

@ssunday
Copy link
Contributor Author

ssunday commented Jul 12, 2024

@mullermp I need to test e2e again with it—I should be able to do that today after I make the feedback changes.

@ssunday
Copy link
Contributor Author

ssunday commented Jul 12, 2024

@mullermp Well, I don't have to, but it seems like it's a good idea since the amount of changes since my last e2e change.

@mullermp
Copy link
Contributor

An e2e test from your side would be great.

@mullermp
Copy link
Contributor

Sorry I've been a bit MIA - I haven't forgotten about this. I may not get to this properly until next week.

@ssunday
Copy link
Contributor Author

ssunday commented Jul 16, 2024

@mullermp I'm going to hold on e2e testing until the PR's basically approved, then. I don't want to spend time e2e testng on a project then have to do more critical changes and then do it again 😅

@mullermp
Copy link
Contributor

It's basically there other than Alex's comments. I can do another pass potentially this week or next week at the latest.

@ssunday
Copy link
Contributor Author

ssunday commented Jul 16, 2024

@mullermp The rakefile comment seems like it shouldn't be a blocker since it's test/cleanup related (and I don't feel strongly/motivated to actually do anything about it). Still, I'd rather wait 😅

Copy link
Contributor

@mullermp mullermp 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! I think this is finished. I agree that subscribed topics (plural) can come later and any fixture refactors can also be done later. I've moved them into a separate rake task for organization. I think a last end to end review would be appreciated and we can try to publish this or next week.

@ssunday
Copy link
Contributor Author

ssunday commented Jul 18, 2024

E2E went fine so far! 👍🏻 (email with attachment handled fine!) So all good IMO

@alextwoods
Copy link
Contributor

The description still has "Need to confirm license changes for other folks". Has that been done? What are the license changes/issues?

@mullermp
Copy link
Contributor

I believe so, bobf said it was fine to be Apache which we have here.

@mullermp
Copy link
Contributor

Thank you @ssunday for your hard work and contribution and @bobf for initial leg work.

@mullermp mullermp merged commit 7a36e5a into aws:main Jul 18, 2024
17 checks passed
@bobf
Copy link

bobf commented Jul 18, 2024

Great work, everyone. @ssunday Let me know if I can send a case of beer or something similar your way, I really do appreciate you getting this all wrapped up.

@ssunday ssunday deleted the action-mailbox branch July 18, 2024 17:25
@ssunday ssunday restored the action-mailbox branch July 18, 2024 17:25
@ssunday
Copy link
Contributor Author

ssunday commented Jul 18, 2024

@bobf Thank you! The existence of this code in general has greatly improved the QOL projects and infrastructure... less 💦 for me! Now it's in a nice cozy home lol.

@timlawrenz
Copy link

thanks @ssunday

@ssunday ssunday deleted the action-mailbox branch July 26, 2024 13:31
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.

5 participants