Skip to content

feat: add webapi response changes as of 2026-04-19#1578

Merged
zimeg merged 1 commit intomainfrom
api
Apr 21, 2026
Merged

feat: add webapi response changes as of 2026-04-19#1578
zimeg merged 1 commit intomainfrom
api

Conversation

@zimeg
Copy link
Copy Markdown
Member

@zimeg zimeg commented Apr 20, 2026

This PR updates the web API client and model based on the production E2E test results - follows #1550.

Category

  • slack-api-model (Slack API Data Models)

Requirements

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

@zimeg zimeg added this to the 1.48.1 milestone Apr 20, 2026
@zimeg zimeg self-assigned this Apr 20, 2026
@zimeg zimeg requested a review from a team as a code owner April 20, 2026 04:51
@zimeg zimeg added project:slack-api-model project:slack-api-model semver:patch labels Apr 20, 2026
Copy link
Copy Markdown
Member Author

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

📣 A few callouts for reviewers!

Comment on lines 370 to 376
while (nextCursor == null || !nextCursor.isEmpty()) {
// Using async client to avoid an exception due to rate limited errors
UsersListResponse response = asyncClient.usersList(r -> r
.includeLocale(true)
.limit(3000)
).get();
UsersListRequest.UsersListRequestBuilder req = UsersListRequest.builder()
.token(botToken).includeLocale(true).limit(200).cursor(nextCursor);
UsersListResponse response = client.usersList(req.build());
nextCursor = response.getResponseMetadata().getNextCursor();
userIds.addAll(response.getMembers().stream().map(User::getId).collect(toList()));
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🔬 note: Here we prefer to use nextCursor for extended results

.build());
assertThat(response.isOk(), is(false));
assertThat(response.getError(), is("missing_required_argument"));
assertThat(response.getError(), is("invalid_arguments"));
Copy link
Copy Markdown
Member Author

@zimeg zimeg Apr 20, 2026

Choose a reason for hiding this comment

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

🧪 note: This expected error might've changed on the server side since a more recent run?

🔍 edit: Or perhaps #1574 changed this!

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.22%. Comparing base (92245ce) to head (f8b4346).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1578      +/-   ##
============================================
- Coverage     73.23%   73.22%   -0.02%     
- Complexity     4515     4516       +1     
============================================
  Files           477      477              
  Lines         14285    14285              
  Branches       1488     1488              
============================================
- Hits          10462    10460       -2     
  Misses         2934     2934              
- Partials        889      891       +2     
Flag Coverage Δ
jdk-14 73.22% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zimeg
Copy link
Copy Markdown
Member Author

zimeg commented Apr 21, 2026

🎁 Will merge now to match the latest upstream!

@zimeg zimeg merged commit 6d0c370 into main Apr 21, 2026
7 checks passed
@zimeg zimeg deleted the api branch April 21, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant