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

fix(hub-common): rename "request" method used by Discussions API fns … #1742

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

rweber-esri
Copy link
Contributor

…to "discussionsApiRequest" and

affects: @esri/hub-common

ISSUES CLOSED: 11042

  1. Description:
  • Renames request fn used by discussion fns to discussionsApiRequest
  • Exports discussionsApiRequest for consumption by hub-discussions in next PR
  • Refactors the other internal request fn used by discussions to conditionally resolve plain text versus JSON when ?f=csv or Accept: "text/csv" is provided to the search post endpoint
  1. Instructions for testing:

  2. Closes Issues: #11042

  3. Updated meaningful TSDoc to methods including Parameters and Returns, see Documentation Guide

  4. used semantic commit messages

  5. PR title follows semantic commit format (CRITICAL if the title is not in a semantic format, the release automation will not run!)

  6. updated peerDependencies as needed. CRITICAL our automated release system can not be counted on to update peerDependencies so we must do it manually in our PRs when needed. See the updating peerDependencies section of the release instructions for more details.

Copy link
Contributor

@juliannaeapicella juliannaeapicella left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (2626a26) to head (9a1bc49).
Report is 178 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##            master     #1742    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          992      1030    +38     
  Lines        17979     18667   +688     
  Branches      3199      3380   +181     
==========================================
+ Hits         17979     18667   +688     

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


🚨 Try these New Features:

…to "discussionsApiRequest" and

affects: @esri/hub-common

ISSUES CLOSED: 11042
ISSUES CLOSED: 11042
@rweber-esri rweber-esri merged commit 72af97d into master Nov 19, 2024
5 checks passed
@rweber-esri rweber-esri deleted the f/discussion-posts-as-csv-1 branch November 19, 2024 20:31
esri-dcdev-2 pushed a commit that referenced this pull request Nov 19, 2024
## @esri/hub-common [15.7.1](https://github.com/Esri/hub.js/compare/@esri/[email protected]...@esri/[email protected]) (2024-11-19)

### Bug Fixes

* **hub-common:** rename "request" method used by Discussions API fns … ([#1742](#1742)) ([72af97d](72af97d))
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