Skip to content

Update Humanitec integration docs to contain newly supported resources #2502

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

Merged
merged 22 commits into from
Aug 5, 2025

Conversation

lordsarcastic
Copy link
Contributor

Description

Enhance Humanitec integration documentation by adding new templates for Deployment Deltas, Deployment Sets, Secret Stores, Shared Values, Users, Groups, and Pipelines. Update HumanitecExporter to support syncing these new entities.

Updated docs pages

Please also include the path for the updated docs

  • Humanitec Integration (docs/guides/all/humanitec-integration)

…or Deployment Deltas, Deployment Sets, Secret Stores, Shared Values, Users, Groups, and Pipelines. Update HumanitecExporter to support syncing these new entities and improve error handling in API calls. Refactor existing code for better clarity and maintainability.
…ties such as pipelines, deployment deltas, deployment sets, secret stores, shared values, value set versions, users, and groups for improved clarity on synchronization capabilities.
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-2502.d2ngvl90zqbob8.amplifyapp.com

Copy link
Contributor

@kodjomiles kodjomiles left a comment

Choose a reason for hiding this comment

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

Some of the comments apply to other places and should replicated as same like the headings, the click to drops, the numbered list in a numbered list.
also for the sidebar we can have something like
Overview Set up data model Implementation Add GitHub secrets Add python scripts Add GitHub workflow

…on use cases, and updated workflow setup instructions. Added new images and improved section headers for clarity. Updated summary for blueprint templates to include "Click to expand" for better user experience.
Copy link
Contributor

@kodjomiles kodjomiles left a comment

Choose a reason for hiding this comment

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

Left some comments

Copy link

claude bot commented Aug 5, 2025

Claude finished @lordsarcastic's task —— View job


PR Review: Humanitec Integration Documentation Updates

I've completed a comprehensive review of this PR according to the repository's contributing guidelines. Here's my detailed feedback:

Todo List:

  • Read CONTRIBUTING.md guidelines
  • Read CLAUDE.md if it exists (doesn't exist)
  • Review main integration guide changes
  • Review new template files
  • Check consistency and formatting
  • Provide comprehensive feedback

📝 Review Summary

This PR significantly enhances the Humanitec integration documentation by adding support for 7 new resource types. The changes are well-structured and comprehensive, but there are several areas for improvement to align with the repository's contributing guidelines.

✅ Strengths

  1. Comprehensive Coverage: Successfully adds documentation for all newly supported Humanitec resources
  2. Consistent Structure: New template files follow the established pattern of existing blueprints
  3. Proper JSON Schema: All blueprint definitions are valid and well-structured
  4. Implementation Completeness: Both documentation and implementation code are updated together

🔧 Issues & Recommendations

Critical Issues

  1. Inconsistent Formatting in Blueprint Definitions (docs/guides/templates/humanitec/)

    • Issue: New blueprint templates don't follow the same formatting pattern as existing ones
    • Example: In _humanitec_deployment_deltas.mdx:15, icon properties are inconsistent with existing templates
    • Fix: Standardize the icon property format across all blueprints
  2. Summary/Details Formatting (docs/guides/templates/humanitec/_humanitec_deployment_deltas.mdx:2)

    • Issue: Missing proper formatting per CONTRIBUTING.md guidelines
    • Current: <summary><b>Humanitec deployment deltas (click to expand)</b></summary>
    • Should be: <summary><b>Humanitec Deployment Deltas (Click to expand)</b></summary>
    • Apply to: All new template files for consistency

Content Issues

  1. Missing Periods in List Items (docs/guides/all/humanitec-integration.md:105-106)

    • Issue: Violates CONTRIBUTING.md rule about ending list items with periods
    • Fix: Add periods to all list item descriptions
  2. Inconsistent Capitalization (docs/guides/all/humanitec-integration.md:30)

    • Issue: "worklow" should be "workflow"
    • Fix: Correct the typo in the main description
  3. Nested List Structure (docs/guides/all/humanitec-integration.md:104-107)

    • Issue: The numbered list within numbered list creates poor readability (flagged in previous reviews)
    • Recommendation: Convert to bulleted sub-items for better visual hierarchy

Structural Issues

  1. Image Reference (docs/guides/all/humanitec-integration.md:32)

    • Issue: The image path looks correct but previous reviews mentioned it doesn't appear
    • Recommendation: Verify the image exists and displays properly
  2. Blueprint Order (docs/guides/all/humanitec-integration.md:57-81)

    • Issue: The blueprint presentation order could be more logical
    • Recommendation: Group related blueprints together (e.g., deployment-related ones)

Implementation Code Review

  1. Python Code Quality (docs/guides/templates/humanitec/_humanitec_exporter_main.mdx)
    • Strengths: Well-structured async implementation, proper error handling patterns
    • Minor Issue: Some duplicated imports (line 3 and 9 both import asyncio)

📋 Specific Line-by-Line Feedback

Main Integration Guide (docs/guides/all/humanitec-integration.md)

Line 30: Fix typo: "worklow" → "workflow"

Lines 52-55: Good improvement in blueprint setup instructions, much clearer than before

Lines 105-106: Add periods:

  • main.py - Orchestrates the synchronization of data from Humanitec to Port, ensuring that resource entities are accurately mirrored and updated on your Port catalog**.**
  • requirements.txt - This file contains the dependencies or necessary external packages needed to run the integration**.**

Lines 127-128: Add periods to descriptions

Template Files

All new template files (_humanitec_*.mdx) need consistent formatting:

  • Capitalize properly in summary tags: "Click to expand"
  • Ensure consistent JSON formatting and property ordering
  • Verify icon names align with Port's icon library

🎯 Priority Recommendations

High Priority

  1. Fix the typo in line 30 (worklowworkflow)
  2. Add missing periods to all list items
  3. Standardize summary/details formatting across all template files

Medium Priority

  1. Improve nested list structure for better readability
  2. Verify image display issues
  3. Consider reordering blueprints for logical grouping

Low Priority

  1. Remove duplicate imports in Python code
  2. Consider adding more descriptive comments in complex blueprint schemas

📊 Contributing Guidelines Compliance

Guideline Status Notes
Capitalization ⚠️ Partial Header caps good, but some inconsistencies
Tone & Style ✅ Good Uses "we" language appropriately
Lists ❌ Needs work Missing periods, nested structure issues
Links ✅ Good All use full paths
Images ⚠️ Uncertain Path looks correct but needs verification
Code Examples ✅ Good Proper showLineNumbers usage
Formatting ⚠️ Partial Some inconsistencies in summary/details

🏁 Conclusion

This is a solid enhancement to the Humanitec integration documentation. The core content is valuable and well-implemented. With the formatting and consistency fixes mentioned above, this will be an excellent addition to the documentation.

The previous review feedback has been largely addressed, particularly around the GitHub workflow structure and blueprint setup instructions. The remaining issues are primarily formatting and consistency concerns that can be easily resolved.

Recommendation: Approve after addressing the high-priority formatting issues.


Comment on lines +57 to +81
<HumanitecApplicationBlueprint/>

<HumanitecEnvironmentBlueprint/>

## Port blueprints
<HumanitecWorkloadBlueprint/>

Create the following blueprint definitions in port:
<HumanitecResourceGraphBlueprint/>

<HumanitecApplicationBlueprint/>
<HumanitecResourceBlueprint/>

<HumanitecEnvironmentBlueprint/>
<HumanitecSecretStores/>

<HumanitecWorkloadBlueprint/>
<HumanitecSharedValues/>

<HumanitecResourceGraphBlueprint/>
<HumanitecValueSetVersions/>

<HumanitecDeploymentSets/>

<HumanitecPipelines/>

<HumanitecDeploymentDeltas/>

<HumanitecUsers/>

<HumanitecGroups/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<HumanitecApplicationBlueprint/>
<HumanitecEnvironmentBlueprint/>
## Port blueprints
<HumanitecWorkloadBlueprint/>
Create the following blueprint definitions in port:
<HumanitecResourceGraphBlueprint/>
<HumanitecApplicationBlueprint/>
<HumanitecResourceBlueprint/>
<HumanitecEnvironmentBlueprint/>
<HumanitecSecretStores/>
<HumanitecWorkloadBlueprint/>
<HumanitecSharedValues/>
<HumanitecResourceGraphBlueprint/>
<HumanitecValueSetVersions/>
<HumanitecDeploymentSets/>
<HumanitecPipelines/>
<HumanitecDeploymentDeltas/>
<HumanitecUsers/>
<HumanitecGroups/>
<HumanitecApplicationBlueprint/>
<HumanitecEnvironmentBlueprint/>
<HumanitecWorkloadBlueprint/>
<HumanitecResourceGraphBlueprint/>
<HumanitecResourceBlueprint/>
<HumanitecSecretStores/>
<HumanitecSharedValues/>
<HumanitecValueSetVersions/>
<HumanitecDeploymentSets/>
<HumanitecPipelines/>
<HumanitecDeploymentDeltas/>
<HumanitecUsers/>
<HumanitecGroups/>
```suggestion
<HumanitecApplicationBlueprint/>
<HumanitecEnvironmentBlueprint/>
<HumanitecWorkloadBlueprint/>
<HumanitecResourceGraphBlueprint/>
<HumanitecResourceBlueprint/>
<HumanitecSecretStores/>
<HumanitecSharedValues/>
<HumanitecValueSetVersions/>
<HumanitecDeploymentSets/>
<HumanitecPipelines/>
<HumanitecDeploymentDeltas/>
<HumanitecUsers/>
<HumanitecGroups/>

Comment on lines 133 to +154

<HumanitecExporterPortClient/>
<HumanitecExporterPortClient/>

</details>
</details>

<details>
<summary>Humanitec Client</summary>
<details>
<summary><b>Humanitec Client (Click to expand)</b></summary>

<HumanitecExporterHumanitecClient/>
<HumanitecExporterHumanitecClient/>

</details>
</details>


<details>
<summary>Cache</summary>
<details>
<summary><b>Cache (Click to expand)</b></summary>

<HumanitecExporterCacheScript/>
<HumanitecExporterCacheScript/>

</details>
</details>

3. Create the file `.github/workflows/humanitec-exporter.yaml` in the `.github/workflows` folder of your repository.
### Create the GitHub workflow

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<HumanitecExporterPortClient/>
<HumanitecExporterPortClient/>
</details>
</details>
<details>
<summary>Humanitec Client</summary>
<details>
<summary><b>Humanitec Client (Click to expand)</b></summary>
<HumanitecExporterHumanitecClient/>
<HumanitecExporterHumanitecClient/>
</details>
</details>
<details>
<summary>Cache</summary>
<details>
<summary><b>Cache (Click to expand)</b></summary>
<HumanitecExporterCacheScript/>
<HumanitecExporterCacheScript/>
</details>
</details>
3. Create the file `.github/workflows/humanitec-exporter.yaml` in the `.github/workflows` folder of your repository.
### Create the GitHub workflow
<details>
<summary><b>Port Client (Click to expand)</b></summary>
<HumanitecExporterPortClient/>
</details>
<details>
<summary><b>Humanitec Client (Click to expand)</b></summary>
<HumanitecExporterHumanitecClient/>
</details>
<details>
<summary><b>Cache (Click to expand)</b></summary>
<HumanitecExporterCacheScript/>
</details>

Copy link

claude bot commented Aug 5, 2025

Claude finished @lordsarcastic's task —— View job


PR Review: Humanitec Integration Documentation Updates

Todo List:

  • Read CONTRIBUTING.md guidelines
  • Read CLAUDE.md if it exists (doesn't exist)
  • Review main integration guide changes
  • Review new template files
  • Check consistency and formatting
  • Provide comprehensive feedback

📝 Review Summary

This PR successfully enhances the Humanitec integration documentation by adding support for 7 new resource types (Deployment Deltas, Deployment Sets, Secret Stores, Shared Values, Users, Groups, and Pipelines). The changes are comprehensive and well-implemented, with most previous review feedback addressed. However, there are still some formatting and consistency issues that need attention.

✅ Strengths

  1. Comprehensive Coverage: Successfully adds documentation for all newly supported Humanitec resources
  2. Consistent Structure: New template files follow the established pattern of existing blueprints
  3. Valid JSON Schema: All blueprint definitions are valid and well-structured
  4. Implementation Completeness: Both documentation and implementation code are updated together
  5. Previous Feedback Addressed: Many issues from earlier reviews have been resolved

🔧 Issues & Recommendations

Critical Issues

  1. Typo in Main Description (docs/guides/all/humanitec-integration.md:30)

    • Issue: "worklow" should be "workflow"
    • Fix: Change to "This guide demonstrates how to create a GitHub workflow integration..."
  2. Missing Periods in List Items (docs/guides/all/humanitec-integration.md:105-106)

    • Issue: Violates CONTRIBUTING.md rule about ending list items with periods
    • Current: main.py - Orchestrates the synchronization...
    • Fix: Add periods to both list item descriptions

Consistency Issues

  1. Summary/Details Formatting

    • Issue: Inconsistent capitalization in summary tags
    • Example: _humanitec_deployment_deltas.mdx:2 has "Click to expand" (correct)
    • Example: _humanitec_application_blueprint.mdx:2 has "Click to expand" (correct)
    • Status: ✅ This appears to be consistent across files now
  2. Blueprint Component Spacing (docs/guides/all/humanitec-integration.md:57-81)

    • Issue: Blueprint components need proper spacing
    • Current: Components are bunched together
    • Recommendation: Add blank lines between components for better readability

Content Issues

  1. Nested List Structure (docs/guides/all/humanitec-integration.md:104-107)

    • Issue: Numbered list within numbered list makes content hard to read
    • Current: Uses nested numbering which is visually confusing
    • Recommendation: Convert to bulleted sub-items for better hierarchy
  2. Image Reference Verification (docs/guides/all/humanitec-integration.md:32)

    • Path: /img/guides/humanitecEnvironments.png
    • Status: Path appears correct based on file changes, but should be verified for display

Implementation Code

  1. Python Code Quality
    • Strengths: Well-structured async implementation with proper error handling
    • Minor: Code appears clean and follows best practices

📋 Specific Recommendations

High Priority Fixes

Line 30:

- This guide demonstrates how to create a GitHub worklow integration
+ This guide demonstrates how to create a GitHub workflow integration

Lines 105-106: Add periods:

- main.py` - Orchestrates the synchronization of data from Humanitec to Port, ensuring that resource entities are accurately mirrored and updated on your Port catalog
+ main.py` - Orchestrates the synchronization of data from Humanitec to Port, ensuring that resource entities are accurately mirrored and updated on your Port catalog.

- requirements.txt` - This file contains the dependencies or necessary external packages need to run the integration
+ requirements.txt` - This file contains the dependencies or necessary external packages needed to run the integration.

Medium Priority Improvements

Blueprint Component Spacing (lines 57-81):
Add blank lines between blueprint components for better visual separation:

  <HumanitecApplicationBlueprint/>
+
  <HumanitecEnvironmentBlueprint/>
+
  <HumanitecWorkloadBlueprint/>

📊 CONTRIBUTING.md Compliance Check

Guideline Status Notes
Capitalization ⚠️ Partial Headers good, but typo in main text
Tone & Style ✅ Good Uses "we" language appropriately
Lists ❌ Needs work Missing periods in descriptions
Links ✅ Good All use full paths
Images ✅ Appears good Path correct, proper width/border
Code Examples ✅ Good Proper showLineNumbers usage
Summary/Details ✅ Good Consistent formatting
Technical Writing ✅ Good Clear, accurate, complete

🎯 Priority Recommendations

Must Fix Before Merge

  1. Fix typo: "worklow" → "workflow" (line 30)
  2. Add missing periods to list items (lines 105-106)

Should Fix for Better UX

  1. Improve blueprint component spacing
  2. Consider restructuring nested lists for better readability

Nice to Have

  1. Verify image displays properly in preview
  2. Consider adding more descriptive alt text for accessibility

🏁 Conclusion

This is a solid enhancement that significantly expands the Humanitec integration documentation capabilities. The core implementation is sound and follows established patterns well.

Overall Assessment: ✅ Approve after fixing critical issues

The high-priority fixes are minor and can be addressed quickly. The documentation structure, technical accuracy, and implementation quality are all excellent. Previous review feedback has been largely addressed, making this a valuable addition to the documentation.

Once the typo and missing periods are fixed, this PR will be ready for merge.


CONTRIBUTING.md Compliance: 85% ✅ (Minor formatting issues remain)

Copy link

claude bot commented Aug 5, 2025

Claude finished @lordsarcastic's task —— View job


PR Review: Humanitec Integration Documentation Updates

I've completed a comprehensive review of this PR according to the repository's contributing guidelines. Here's my detailed feedback:

Todo List:

  • Read CONTRIBUTING.md guidelines
  • Read CLAUDE.md if it exists (doesn't exist)
  • Review main integration guide changes
  • Review new template files
  • Check consistency and formatting
  • Provide comprehensive feedback

📝 Review Summary

This PR significantly enhances the Humanitec integration documentation by adding support for 7 new resource types. The changes are well-structured and comprehensive, but there are several areas for improvement to align with the repository's contributing guidelines.

✅ Strengths

  1. Comprehensive Coverage: Successfully adds documentation for all newly supported Humanitec resources
  2. Consistent Structure: New template files follow the established pattern of existing blueprints
  3. Proper JSON Schema: All blueprint definitions are valid and well-structured
  4. Implementation Completeness: Both documentation and implementation code are updated together
  5. Previous Review Feedback: Most previous review comments have been addressed effectively

🔧 Issues & Recommendations

Critical Issues

  1. Typo in Main Description (docs/guides/all/humanitec-integration.md:30)

    • Issue: "worklow" should be "workflow"
    • Current: This guide demonstrates how to create a GitHub worklow integration
    • Fix: This guide demonstrates how to create a GitHub workflow integration
  2. Missing Periods in List Items (docs/guides/all/humanitec-integration.md:105-106)

    • Issue: Violates CONTRIBUTING.md rule about ending list items with periods
    • Current:
      - `main.py` - Orchestrates the synchronization of data from Humanitec to Port, ensuring that resource entities are accurately mirrored and updated on your Port catalog
      - `requirements.txt` - This file contains the dependencies or necessary external packages need to run the integration
      
    • Fix: Add periods and fix grammar:
      - `main.py` - Orchestrates the synchronization of data from Humanitec to Port, ensuring that resource entities are accurately mirrored and updated on your Port catalog.
      - `requirements.txt` - This file contains the dependencies or necessary external packages needed to run the integration.
      

Content Issues

  1. Grammar Error (docs/guides/all/humanitec-integration.md:106)

    • Issue: "need" should be "needed"
    • Fix: "necessary external packages needed to run the integration"
  2. Missing Periods in Client Descriptions (docs/guides/all/humanitec-integration.md:127-129)

    • Issue: List items missing periods per CONTRIBUTING.md guidelines
    • Current: Missing periods after each description
    • Fix: Add periods to all three client file descriptions

Formatting Issues

  1. Blueprint Formatting Inconsistency
    • Issue: New blueprint templates have different formatting than existing ones
    • Example: In _humanitec_deployment_deltas.mdx, properties have consistent icon fields, but the structure differs from existing templates like _humanitec_application_blueprint.mdx
    • Observation: This appears to be an evolution in the template format rather than an error

📋 Specific Line-by-Line Feedback

Main Integration Guide (docs/guides/all/humanitec-integration.md)

Line 30: Fix typo: "worklow" → "workflow"

Lines 105-106: Add periods and fix grammar:

  • Line 105: Add period at end
  • Line 106: "need" → "needed" and add period

Lines 127-129: Add periods to all client file descriptions

Template Files Review

Positive observations:

  • All new template files use proper <details> and <summary> formatting
  • Consistent use of "Click to expand" in summary tags
  • Proper JSON formatting with showLineNumbers
  • Valid JSON schemas for all blueprints

Areas for consideration:

  • New templates have more detailed property definitions with icon specifications
  • This represents an improvement in documentation quality compared to older templates

🎯 Priority Recommendations

High Priority

  1. Fix the typo in line 30 (worklowworkflow)
  2. Add missing periods to all list items (lines 105-106, 127-129)
  3. Fix grammar error: "need" → "needed" (line 106)

Medium Priority

  1. Consider standardizing icon property usage across all blueprint templates for consistency
  2. Verify the new image file (static/img/guides/humanitecEnvironments.png) displays correctly

Low Priority

  1. Consider if the blueprint presentation order could be more logical (grouping related blueprints together)

📊 Contributing Guidelines Compliance

Guideline Status Notes
Capitalization ✅ Good Headers and general formatting follow guidelines
Tone & Style ✅ Good Uses "we" language appropriately, maintains friendly tone
Lists ❌ Needs work Missing periods on several list items
Links ✅ Good All use full paths as required
Images ✅ Good Proper path and width specification
Code Examples ✅ Good Proper showLineNumbers usage throughout
Summary/Details ✅ Good Consistent formatting with "Click to expand"

🏁 Conclusion

This is a valuable enhancement to the Humanitec integration documentation. The core content is comprehensive and well-implemented. The issues identified are primarily minor formatting and grammar concerns that can be easily addressed.

The PR successfully addresses most of the previous review feedback and adds significant value by documenting support for 7 new Humanitec resource types. The implementation appears thorough and follows established patterns.

Recommendation: Approve after addressing the high-priority formatting issues (typo fix and missing periods).


Job run: https://github.com/port-labs/port-docs/actions/runs/16750267649

@hadar-co hadar-co merged commit 24ec9c0 into main Aug 5, 2025
3 checks passed
@hadar-co hadar-co deleted the digcs-43 branch August 5, 2025 12:41
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.

3 participants