langchain/libs/community/langchain_community/utilities
Manthan Surkar 1ee8aceaee
community: fix Jira API wrapper failing initialization with cloud param (#30117)
### **Description**  
Converts the boolean `jira_cloud` parameter in the Jira API Wrapper to a
string before initializing the Jira Client. Also adds tests for the
same.

### **Issue**  
[Jira API Wrapper
Bug](8abb65e138/libs/community/langchain_community/utilities/jira.py (L47))

```python
jira_cloud_str = get_from_dict_or_env(values, "jira_cloud", "JIRA_CLOUD")
jira_cloud = jira_cloud_str.lower() == "true"
```

The above code has a bug where the value of `"jira_cloud"` is a boolean.
If it is passed, calling `.lower()` on a boolean raises an error.
Additionally, `False` cannot be passed explicitly since
`get_from_dict_or_env` falls back to environment variables.

Relevant code in `langchain_core`:  

[Source](https://github.com/thesmallstar/langchain/blob/master/.venv/lib/python3.13/site-packages/langchain_core/utils/env.py#L46)

```python
if isinstance(key, str) and key in data and data[key]:  # Here, data[key] is False
```

This PR fixes both issues.

### **Twitter Handle**  
[Manthan Surkar](https://x.com/manthan_surkar)
2025-03-05 10:49:25 -05:00
..
__init__.py Community: Google Books API Tool (#27307) 2024-11-07 15:29:35 -08:00
alpha_vantage.py
anthropic.py
apify.py docs: update apify integration (#29553) 2025-02-12 20:02:55 -08:00
arcee.py
arxiv.py
asknews.py
astradb.py
awslambda.py
bibtex.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
bing_search.py
brave_search.py
cassandra_database.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
cassandra.py
clickup.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
dalle_image_generator.py community[patch]: fix errors introduced by pydantic 2.10 (#28297) 2024-11-22 17:50:13 -05:00
dataforseo_api_search.py
dataherald.py
dria_index.py
duckduckgo_search.py langchain_community: add image support to DuckDuckGoSearchAPIWrapper (#29816) 2025-02-15 21:32:14 -05:00
financial_datasets.py
github.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
gitlab.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
golden_query.py
google_books.py Community: Google Books API Tool (#27307) 2024-11-07 15:29:35 -08:00
google_finance.py
google_jobs.py
google_lens.py
google_places_api.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
google_scholar.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
google_search.py
google_serper.py
google_trends.py
graphql.py
infobip.py
jina_search.py (Community): Added API Key for Jina Search API Wrapper (#29622) 2025-02-12 20:12:07 -08:00
jira.py community: fix Jira API wrapper failing initialization with cloud param (#30117) 2025-03-05 10:49:25 -05:00
max_compute.py
merriam_webster.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
metaphor_search.py
mojeek_search.py
nasa.py
nvidia_riva.py all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
opaqueprompts.py
openapi.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
openweathermap.py
oracleai.py
outline.py
passio_nutrition_ai.py
pebblo.py
polygon.py community: Update Polygon.io API (#27552) 2024-10-31 18:14:06 +00:00
portkey.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
powerbi.py
pubmed.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
python.py
reddit_search.py
redis.py core,langchain,community[patch]: allow langsmith 0.2 (#28598) 2024-12-10 18:50:58 +00:00
rememberizer.py
requests.py
scenexplain.py community[patch]: fix errors introduced by pydantic 2.10 (#28297) 2024-11-22 17:50:13 -05:00
searchapi.py
searx_search.py
semanticscholar.py
serpapi.py
spark_sql.py
sql_database.py Deprecating sql_database access for creating UC functions for agent tools (#29745) 2025-02-13 02:24:44 +00:00
stackexchange.py
steam.py
tavily_search.py community: add title, score and raw_content to tavily search results (#29995) 2025-02-25 23:27:21 +00:00
tensorflow_datasets.py
twilio.py
vertexai.py
wikidata.py community: change wikidata rest api version from v0 to v1 (#29708) 2025-02-10 17:12:38 -08:00
wikipedia.py
wolfram_alpha.py
you.py
zapier.py