This is an automated email from the ASF dual-hosted git repository.

zky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git


The following commit(s) were added to refs/heads/main by this push:
     new e758e9f7ba docs: the customize plugin supports array type (#677)
e758e9f7ba is described below

commit e758e9f7ba2503114c145b1add250ac43da93527
Author: abeizn <[email protected]>
AuthorDate: Wed Nov 8 06:00:10 2023 -0600

    docs: the customize plugin supports array type (#677)
    
    * docs: the customize plugin supports array type
    
    * fix: md format
    
    * docs: add cicd_deployments to the diagram (#676)
    
    * docs: add cicd_deployments to the diagram
    
    * docs: add issue_custom_array_fields
    
    ---------
    
    Co-authored-by: Startrekzky <[email protected]>
    
    * fix: add table link
    
    ---------
    
    Co-authored-by: Louis.z <[email protected]>
    Co-authored-by: Startrekzky <[email protected]>
---
 docs/Plugins/customize.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/Plugins/customize.md b/docs/Plugins/customize.md
index 349c67df01..17d1840acf 100644
--- a/docs/Plugins/customize.md
+++ b/docs/Plugins/customize.md
@@ -21,13 +21,17 @@ For now, only the following five types were supported:
 - bigint
 - float
 - timestamp
+- array
 
 ## Sample Request
 
 ### Trigger Data Extraction
 To extract data, switch to `Advanced Mode` on the first step of creating a 
Blueprint and paste a JSON config as the following:
 
-The example below demonstrates how to extract status name from the table 
`_raw_jira_api_issues` and assign it to the `x_test` column of the table 
`issues`.
+The example below demonstrates how to extract status name from the table 
`_raw_jira_api_issues`:
+  1. For non-array types: Extract the status name from the 
`_raw_jira_api_issues` table and assign it to the `x_test` column in the 
[issues](/DataModels/DevLakeDomainLayerSchema.md#issues) table.
+  2. For array types: Extract the status name from the `_raw_jira_api_issues` 
table, and create a new 
[issue_custom_array_fields](/DataModels/DevLakeDomainLayerSchema.md#issue_custom_array_fields)
 table containing `issue_id`, `field_id`, and `value` columns. This table has a 
one-to-many relationship with the `issues` table. `issue_id` is the id 
corresponding to the issue, `x_test` corresponds to the `field_id` column, and 
the value of `x_test` corresponds to the `value` column.
+
 We leverage the package `https://github.com/tidwall/gjson` to extract value 
from the JSON. For the extraction syntax, please refer to this 
[docs](https://github.com/tidwall/gjson/blob/master/SYNTAX.md)
 
 - `table`: domain layer table name

Reply via email to