Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
362f2b7
[AUTOMATED] Update the dependency graph and the dashboard
Oct 24, 2025
5b7ed2b
Merge pull request #8395 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 24, 2025
ef3eb3a
[AUTOMATED] Update the dependency graph and the dashboard
Oct 24, 2025
8634962
Merge pull request #8399 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 24, 2025
460def2
[AUTOMATED] Update the dependency graph and the dashboard
Oct 27, 2025
c7207ba
Merge pull request #8406 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 27, 2025
e799231
Merge pull request #8394 from daneshk/main
daneshk Oct 27, 2025
f24570a
[AUTOMATED] Update the dependency graph and the dashboard
Oct 27, 2025
6a8cb34
Merge pull request #8408 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 27, 2025
5ca90e8
[AUTOMATED] Update the dependency graph and the dashboard
Oct 29, 2025
3e3e68b
Merge pull request #8411 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 29, 2025
b73edb7
[AUTOMATED] Update the dependency graph and the dashboard
Oct 29, 2025
934efb5
Merge pull request #8413 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 29, 2025
58c15b4
[AUTOMATED] Update the dependency graph and the dashboard
Oct 30, 2025
152d0e9
Merge pull request #8420 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 30, 2025
7d9286f
[AUTOMATED] Update the dependency graph and the dashboard
Oct 31, 2025
f7954b9
Merge pull request #8426 from ballerina-platform/update-dependency-graph
ballerina-bot Oct 31, 2025
79d0bb3
[AUTOMATED] Update the dependency graph and the dashboard
Nov 3, 2025
64aa770
Merge pull request #8430 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 3, 2025
dca365d
[AUTOMATED] Update the dependency graph and the dashboard
Nov 4, 2025
f40a397
Merge pull request #8431 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 4, 2025
1a92372
[AUTOMATED] Update the dependency graph and the dashboard
Nov 4, 2025
9d505bc
Merge pull request #8435 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 4, 2025
ef4cf76
[AUTOMATED] Update the dependency graph and the dashboard
Nov 5, 2025
c572b70
Merge pull request #8436 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 5, 2025
d90742d
[AUTOMATED] Update the dependency graph and the dashboard
Nov 6, 2025
0cc15c4
Merge pull request #8437 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 6, 2025
a01dc62
[AUTOMATED] Update the dependency graph and the dashboard
Nov 6, 2025
adb32db
Merge pull request #8442 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 6, 2025
ce44dbf
[AUTOMATED] Update the dependency graph and the dashboard
Nov 7, 2025
c89084d
Merge pull request #8443 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 7, 2025
d298ee2
[AUTOMATED] Update the dependency graph and the dashboard
Nov 7, 2025
fa99b0d
Merge pull request #8445 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 7, 2025
5205787
[AUTOMATED] Update the dependency graph and the dashboard
Nov 8, 2025
0b01611
Merge pull request #8446 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 8, 2025
1e15a67
[AUTOMATED] Update the dependency graph and the dashboard
Nov 9, 2025
cdd3d26
Merge pull request #8447 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 9, 2025
0d8be40
[AUTOMATED] Update the dependency graph and the dashboard
Nov 11, 2025
05e6d90
Merge pull request #8451 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 11, 2025
b51e7eb
[AUTOMATED] Update the dependency graph and the dashboard
Nov 14, 2025
227f30f
Merge pull request #8459 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 14, 2025
08ad9d8
[AUTOMATED] Update the dependency graph and the dashboard
Nov 16, 2025
83a78ac
Merge pull request #8461 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 16, 2025
ece0583
[AUTOMATED] Update the dependency graph and the dashboard
Nov 17, 2025
55131d4
Merge pull request #8462 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 17, 2025
59ecb52
Update the connector develpment process (#8463)
ThisaruGuruge Nov 17, 2025
337c3d6
Fix invalid metadata entry (#8464)
ThisaruGuruge Nov 17, 2025
c5992c1
[AUTOMATED] Update the dependency graph and the dashboard
Nov 17, 2025
b2b2854
Merge pull request #8466 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 17, 2025
6a67b90
[AUTOMATED] Update the dependency graph and the dashboard
Nov 18, 2025
8deef81
Merge pull request #8469 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 18, 2025
8272c17
[AUTOMATED] Update the dependency graph and the dashboard
Nov 19, 2025
8157107
Merge pull request #8474 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 19, 2025
8375168
[AUTOMATED] Update the dependency graph and the dashboard
Nov 20, 2025
94859d8
Merge pull request #8476 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 20, 2025
028426d
[AUTOMATED] Update the dependency graph and the dashboard
Nov 20, 2025
353c978
Merge pull request #8479 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 20, 2025
249f3db
Add Connector Automation Package (#8458)
nostoc Nov 21, 2025
5f7c75a
[AUTOMATED] Update the dependency graph and the dashboard
Nov 21, 2025
d1fd218
Merge pull request #8487 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 21, 2025
00d5288
[AUTOMATED] Update the dependency graph and the dashboard
Nov 24, 2025
19c8251
Merge pull request #8491 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 24, 2025
f559dce
[AUTOMATED] Update the dependency graph and the dashboard
Nov 25, 2025
bff60fb
Merge pull request #8492 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 25, 2025
124f29d
[AUTOMATED] Update the dependency graph and the dashboard
Nov 25, 2025
4e02fe3
Merge pull request #8494 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 25, 2025
1c9243b
[AUTOMATED] Update the dependency graph and the dashboard
Nov 27, 2025
14aa959
Merge pull request #8499 from ballerina-platform/update-dependency-graph
ballerina-bot Nov 27, 2025
a8b5637
[AUTOMATED] Update the dependency graph and the dashboard
Dec 1, 2025
69c15a6
Merge pull request #8504 from ballerina-platform/update-dependency-graph
ballerina-bot Dec 1, 2025
a63bb82
Add API documentation review workflow
daneshk Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
237 changes: 237 additions & 0 deletions .claude/commands/review-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
# Ballerina Connector API Documentation Review

Please review and improve the API documentation in this Ballerina connector repository to ensure it's optimized for the low-code editor view in Ballerina Integrator (BI).

## Documentation Guidelines

### 1. **Simplify Function Descriptions**
- Make function descriptions simpler and more descriptive
- Avoid using complex/long code snippets in descriptions
- **Keep:** Brief 1-2 line code snippets that demonstrate function usage
- Focus on what the function does and when to use it
- **Keep:** Valid business context, cost implications, performance notes

**Example:**
```ballerina
# Before:
# Creates a table. The CreateTable operation adds a new table to your account. In an AWS account, table names must be
# unique within each Region. That is, you can have two tables with same name if you create the tables in different Regions.

# After:
# Creates a new table in your AWS account. Table names must be unique within each region.
```

### 2. **Add Comprehensive Type Descriptions**
- Add clear descriptions for enum TYPES (not individual values)
- The description can span multiple lines
- Explain what the enum is used for and provide context
- **IMPORTANT:** Do NOT add doc comments to individual enum values/fields - this causes build warnings when enum members are duplicated across different enums

**Example:**
```ballerina
# Before:
public enum ReturnValues {
NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW
}

# After:
# Which item attributes to return in write operation responses.
# NONE - Return no attributes
# ALL_OLD - All attributes before the operation
# UPDATED_OLD - Only updated attributes before the operation
# ALL_NEW - All attributes after the operation
# UPDATED_NEW - Only updated attributes after the operation
public enum ReturnValues {
NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW
}
```

**For Record Types:**
```ballerina
# Configuration for connecting to the service.
public type ConnectionConfig record {|
# Service endpoint URL
string endpoint;
# Authentication credentials
Credentials credentials;
|};
```

### 3. **Avoid Pro-Code Terminology**
- Remove references to "legacy parameter" - instead use: "Alternative method (use X for newer implementations)"
- Don't mention internal code constructs in user-facing descriptions
- Simplify technical jargon where possible

**Example:**
```ballerina
# Before:
# This is a legacy parameter. Use ProjectionExpression instead

# After:
# Specific attributes to retrieve (consider using `ProjectionExpression` for newer implementations)
```

### 4. **Improve Client/Object Descriptions**
- Make the main client class description comprehensive
- Describe the purpose and main capabilities
- Remove "Represents" prefix

**Example:**
```ballerina
# Before:
# Represents the Ballerina connector for ServiceName.
# This connector allows you to...

# After:
# Client for ServiceName, enabling [list main capabilities].
# Supports [key operations] and [additional features].
```

### 5. **Make Record Field Descriptions More Descriptive**
- Remove "Represents" prefix from record descriptions
- Be direct and descriptive
- **Keep:** "Valid Values:" listings
- **Keep:** Important details about costs, limits, behavior

**Example:**
```ballerina
# Before:
# Represents the AWS credentials.
public type AwsCredentials record {
# AWS access key
string accessKeyId;
};

# After:
# AWS credentials for authentication.
public type AwsCredentials record {
# AWS access key ID
string accessKeyId;
};
```

### 6. **Remove Redundant "Represents" Prefix**
- Don't start record/type descriptions with "Represents"
- Be direct: describe what it IS, not that it "represents" something

**Example:**
```ballerina
# Before:
# Represents the response after `WriteBatchItem` operation.

# After:
# Response from a batch write operation containing consumption metrics and unprocessed items.
```

### 7. **Handle Operation Name References**
- **Remove backticks** around operation names when describing them naturally
- **Keep backticks** for:
- Field names (`TableName`, `LastEvaluatedKey`)
- Return types
- Specific attribute names that users need to recognize
- Enum values when listing options

**Example:**
```ballerina
# Before:
# The response after `BatchWriteItem` operation

# After:
# Response from a batch write operation

# But KEEP backticks for field references:
# Use the value from `LastEvaluatedKey` in the next request
```

### 8. **Preserve Valuable Context**
- **DO KEEP:**
- "Valid Values:" enumerations
- Cost implications (e.g., "AWS KMS charges apply")
- Performance notes (e.g., "More efficient than scan")
- Business logic explanations
- Multi-line detailed descriptions
- Limits and quotas (e.g., "Maximum of 20 indexes")
- Security implications

**Example:**
```ballerina
# GOOD - Keep this detail:
# Whether server-side encryption is enabled. If enabled (true), server-side encryption type is set to KMS
# and an AWS managed CMK is used (AWS KMS charges apply). If disabled (false) or not specified,
# server-side encryption is set to AWS owned CMK
```

### 9. **Keep Brief Usage Code Snippets**
- **DO KEEP:** Short 1-2 line code snippets that demonstrate function usage
- These brief examples help users understand how to call the function
- **DO REMOVE:** Complex multi-line code examples that belong in separate documentation
- **DO REMOVE:** Long code blocks showing complete implementations

**Example:**
```ballerina
# GOOD - Keep this brief usage example:
# Retrieves an item from the table.
# ```ballerina
# Item item = check dynamoDb->getItem("Users", {"id": "123"});
# ```

# BAD - Remove complex examples:
# (Multi-line code showing error handling, multiple operations, etc.)
```

## Reference Examples

Review these PRs for examples of correct documentation style:
- https://github.com/ballerina-platform/module-ballerinax-postgresql/pull/1241
- https://github.com/ballerina-platform/module-ballerina-crypto/pull/607

## Files to Review

Typically review these files in order:
1. **Client file** (e.g., `client.bal`, `caller.bal`)
- Main client class description
- All remote function descriptions

2. **Records file** (e.g., `records.bal`, `types.bal`)
- All public record types
- All record field descriptions
- Remove "Represents" prefixes

3. **Constants/Enums file** (e.g., `constants.bal`, `enums.bal`)
- All public enum types
- Add descriptions for every enum value
- Remove "Represents" prefixes

4. **Other API files** (e.g., `utils.bal`, `stream.bal`)
- Public functions and types

## Critical Issues to Check

1. ❌ **Wrong service description** - Verify the client description matches the actual service (not copied from another connector)
2. ❌ **Doc comments on enum values** - Remove individual enum value doc comments (causes build warnings with duplicate members)
3. ❌ **Missing enum type descriptions** - Every enum type should have a clear description with value explanations
4. ❌ **"Represents" prefix** - Remove from all record and enum descriptions
5. ❌ **"Legacy parameter"** - Replace with friendlier alternative guidance
6. ❌ **Complex code snippets in descriptions** - Remove long/complex code examples (but keep brief 1-2 line usage snippets)
7. ❌ **Missing "Valid Values"** - Ensure enum fields in records reference valid enum values

## Task Checklist

- [ ] Fix main client/service class description
- [ ] Improve all remote function descriptions
- [ ] Remove all "Represents" prefixes from records and enums
- [ ] Add enum TYPE descriptions (explain values in the type comment, not individual value comments)
- [ ] Remove doc comments from individual enum values/fields
- [ ] Replace "legacy parameter" references with helpful alternatives
- [ ] Remove backticks from operation names (keep for field names)
- [ ] Verify "Valid Values:" listings are present for enum fields in records
- [ ] Fix any typos found during review
- [ ] Ensure multi-line helpful context is preserved

## Output Format

When complete, provide a summary of:
1. **Critical issues found** (especially wrong service descriptions)
2. **Statistics** (number of records fixed, enums improved, etc.)
3. **Key improvements made** with examples
4. **Files modified** with brief description of changes
Loading