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

PushAsyncService #139

Merged
merged 2 commits into from
Nov 4, 2020
Merged

PushAsyncService #139

merged 2 commits into from
Nov 4, 2020

Conversation

sp00m
Copy link
Contributor

@sp00m sp00m commented Jul 3, 2020

Introducing PushAsyncService for #101.

I tried to keep the existing coding style and to ensure backward compatibility.

Still WIP because of the following points though:

  • CompletableFuture is only available since Java 8, and I did not notice this project still supports Java 7. I've update to Java 8, is that OK?

  • I've kept the existing PushService and introduced PushAsyncService to ensure backward compatibility. The shared code has been moved into a parent class AbstractPushService. Because the setters return this to allow chaining, I had to hack around with the usual <T extends AbstractPushService<T>>, which ends up in "unchecked cast" (although safe in this specific case), is that OK?

  • I've deprecated PushService#sendAsync, redirecting to PushAsyncService#send instead, is that OK?

  • I've been using AHC, but I noticed that only 13 days ago, it is now looking for a new maintainer... I hope it will find one, but in the meantime, is that OK?

  • I wanted to add integration tests around PushAsyncService, but I didn't manage to run the existing ones locally... Any specific config I'm supposed to set up first?

Let me know :)

@sp00m
Copy link
Contributor Author

sp00m commented Jul 3, 2020

Hmm, looks like the CI fails on SeleniumTests too, which is the test I don't manage to get working locally either. Not sure it's the same issue though.

sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceCompatibility = 1.8
targetCompatibility = 1.8
Copy link
Member

Choose a reason for hiding this comment

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

I'm okay with replacing the minimum requirement from Java 7 to Java 8. Can you change this in README.md as well (first line)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, see 6dd7db8.

@sp00m sp00m requested a review from martijndwars July 7, 2020 10:35
@martijndwars
Copy link
Member

Sorry for the delay, I've been on vacation for the last two weeks. I've tried to revive the integration tests in testcafe, but I haven't managed to get these to work on Travis CI. The integration tests have been a huge pain point (for all projects in the web-push-libs organization, as far as I'm aware). I'll run some manual tests when I'm back home. I don't expect any problems and I'll merge and release a new version soon after.

@sp00m
Copy link
Contributor Author

sp00m commented Jul 22, 2020

Sorry for the delay, I've been on vacation for the last two weeks. I've tried to revive the integration tests in testcafe, but I haven't managed to get these to work on Travis CI. The integration tests have been a huge pain point (for all projects in the web-push-libs organization, as far as I'm aware). I'll run some manual tests when I'm back home. I don't expect any problems and I'll merge and release a new version soon after.

Sure, no worries, thanks for your time :)

@sp00m
Copy link
Contributor Author

sp00m commented Nov 3, 2020

Hey @martijndwars, any update for this PR? Did you get a chance to run manual tests yet?

@martijndwars
Copy link
Member

Yep, ran the tests a while back but forgot to merge. Great work!

@martijndwars martijndwars merged commit bd9bc58 into web-push-libs:master Nov 4, 2020
@fecheromero
Copy link

when do you think we could get this in a new release?

@martijndwars
Copy link
Member

I published version 5.1.1 last night (CC @sp00m @fecheromero).

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

3 participants