Skip to content

Update link_shared event payload for the changes starting on September 1#817

Merged
seratch merged 3 commits into
slackapi:mainfrom
seratch:link_shared_2021_08_unfurls
Aug 20, 2021
Merged

Update link_shared event payload for the changes starting on September 1#817
seratch merged 3 commits into
slackapi:mainfrom
seratch:link_shared_2021_08_unfurls

Conversation

@seratch
Copy link
Copy Markdown
Contributor

@seratch seratch commented Aug 17, 2021

This pull request updates link_shared event data class to support the new fields that are available since September 1. Refer to the changelog for more details: https://api.slack.com/changelog/2021-08-changes-to-unfurls

Category (place an x in each of the [ ])

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to the those rules.

@seratch seratch added enhancement M-T: A feature request for new functionality project:slack-api-model project:slack-api-model labels Aug 17, 2021
@seratch seratch added this to the 1.11.0 milestone Aug 17, 2021
" }\n" +
" ]\n" +
"}\n";
LinkSharedEvent event = GsonFactory.createSnakeCase().fromJson(json, LinkSharedEvent.class);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

FYI: This GsonFactory (for testing) detects unknown fields. If there is some, the test fails. Adding unfurlId & source made this test successful.

Copy link
Copy Markdown

@misscoded misscoded left a comment

Choose a reason for hiding this comment

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

LGTM! I'm curious to know more about the use case behind this and/or what the pain point has been up to this point that this addresses (if you happen to know).

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 18, 2021

Codecov Report

Merging #817 (0d98c25) into main (05ba174) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 0d98c25 differs from pull request most recent head 4a0a83c. Consider uploading reports for the commit 4a0a83c to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##               main     #817   +/-   ##
=========================================
  Coverage     77.18%   77.18%           
  Complexity     3438     3438           
=========================================
  Files           384      384           
  Lines         10296    10297    +1     
  Branches       1003     1003           
=========================================
+ Hits           7947     7948    +1     
  Misses         1763     1763           
  Partials        586      586           
Impacted Files Coverage Δ
...java/com/slack/api/methods/RequestFormBuilder.java 89.23% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05ba174...4a0a83c. Read the comment docs.

@seratch seratch force-pushed the link_shared_2021_08_unfurls branch from bb1aebc to 4a0a83c Compare August 18, 2021 00:29
Copy link
Copy Markdown
Contributor

@srajiang srajiang left a comment

Choose a reason for hiding this comment

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

This looks good to me as well!

@manucaicedo
Copy link
Copy Markdown

Hey @seratch ! Would it be okay to release this change ahead of the Sept 1 change? I'm working with a partner that would like to use the fields for some beta testing.

@seratch
Copy link
Copy Markdown
Contributor Author

seratch commented Aug 19, 2021

@manucaicedo We can release it as an RC version! I will ship v1.11.0-RC1 by the end of this week.

@seratch seratch merged commit 99b8a7f into slackapi:main Aug 20, 2021
@seratch seratch deleted the link_shared_2021_08_unfurls branch August 20, 2021 00:18
@seratch
Copy link
Copy Markdown
Contributor Author

seratch commented Aug 20, 2021

👋 @manucaicedo I just released v1.11.0-RC1 onto the Sonatype OSS repositories. The jar files will be synchronized to the Maven Central within a few hours. https://search.maven.org/artifact/com.slack.api/bolt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality project:slack-api-model project:slack-api-model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants