replace 'config-yaml/configtxOrgs.json' with 'config-yaml/orgs/[peer/orderer]-[orgName].json #17

Merged
kth-tw merged 3 commits from config-yaml-orgs into master 2021-12-07 01:41:15 -05:00
kth-tw commented 2021-12-06 22:37:02 -05:00 (Migrated from github.com)

PULL REQUEST

說明 (Description)

network create 時會產生 config-yaml/configtxOrgs.json ,在channel create時會成為org的選項
但是 peer create 時,新的peer org 不會被加到這個檔案,導致新組織無法再 channel create 時被選擇

此PR的改成在1個org就是一個檔案,在 network createpeer/orderer create 時都會產生此檔案。
檔案名稱:
舊:config-yaml/configtxOrgs.json
新:config-yaml/orgs/[peer/orderer]-[orgName].json

相關問題 (Linked Issues)

  • 新組織無法在 channel create 時選擇

貢獻種類 (Type of change)

  • Bug fix (除錯 non-breaking change which fixes an issue)
  • New feature (增加新功能 non-breaking change which adds functionality)
  • Breaking change (可能導致相容性問題 fix or feature that would cause existing functionality to not work as expected)
  • Doc change (需要更新文件 this change requires a documentation update)

測試環境 (Test Configuration):
*OS: Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-1020-gcp x86_64)
*NodeJS Version: v16.13.1
*NPM Version: 8.2.0
*Docker Version: 20.10.9

檢查清單 (Checklist):

  • 我的程式碼遵從此專案的規範 (My code follows the style guidelines of this project)
  • 我有對於自己的程式碼進行測試檢查 (I have performed a self-review of my own code)
  • 我有在程式碼中提供必要的註解 (I have commented my code, particularly in hard-to-understand areas)
  • 我有在文件中進行必要的更動 (I have made corresponding changes to the documentation)
  • 我的程式碼更動沒有顯著增加錯誤數量 (My changes generate no new warnings)
  • 我有新增必要的單元測試 (I have added tests that prove my fix is effective or that my feature works)
  • 我有檢查並更正程式碼錯誤的拼字 (I have checked my code and corrected any misspellings)

我已完成以上清單,並且同意遵守 Code of Conduct

I have completed the checklist and agree to abide by the code of conduct.

  • 同意 (I consent)
# PULL REQUEST ## 說明 (Description) `network create` 時會產生 `config-yaml/configtxOrgs.json` ,在channel create時會成為org的選項 但是 `peer create` 時,新的peer org 不會被加到這個檔案,導致新組織無法再 `channel create` 時被選擇 此PR的改成在1個org就是一個檔案,在 `network create` 與 `peer/orderer create` 時都會產生此檔案。 檔案名稱: 舊:`config-yaml/configtxOrgs.json` 新:`config-yaml/orgs/[peer/orderer]-[orgName].json` ## 相關問題 (Linked Issues) - 新組織無法在 `channel create` 時選擇 ## 貢獻種類 (Type of change) - [x] Bug fix (除錯 non-breaking change which fixes an issue) - [x] New feature (增加新功能 non-breaking change which adds functionality) - [ ] Breaking change (可能導致相容性問題 fix or feature that would cause existing functionality to not work as expected) - [ ] Doc change (需要更新文件 this change requires a documentation update) **測試環境 (Test Configuration)**: *OS: Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-1020-gcp x86_64) *NodeJS Version: v16.13.1 *NPM Version: 8.2.0 *Docker Version: 20.10.9 ## 檢查清單 (Checklist): - [x] 我的程式碼遵從此專案的規範 (My code follows the style guidelines of this project) - [x] 我有對於自己的程式碼進行測試檢查 (I have performed a self-review of my own code) - [x] 我有在程式碼中提供必要的註解 (I have commented my code, particularly in hard-to-understand areas) - [ ] 我有在文件中進行必要的更動 (I have made corresponding changes to the documentation) - [x] 我的程式碼更動沒有顯著增加錯誤數量 (My changes generate no new warnings) - [ ] 我有新增必要的單元測試 (I have added tests that prove my fix is effective or that my feature works) - [x] 我有檢查並更正程式碼錯誤的拼字 (I have checked my code and corrected any misspellings) 我已完成以上清單,並且同意遵守 [Code of Conduct](CODE_OF_CONDUCT.md) I have completed the checklist and agree to abide by the [code of conduct](CODE_OF_CONDUCT.md). - [x] 同意 (I consent)
RuiSiang (Migrated from github.com) reviewed 2021-12-06 22:37:02 -05:00
kth-tw commented 2021-12-06 22:58:15 -05:00 (Migrated from github.com)

rename 'orgConfigTx' to 'OrgDefinitionJson'
image

rename 'orgConfigTx' to 'OrgDefinitionJson' ![image](https://user-images.githubusercontent.com/88102592/144963654-93b17dad-f6df-4a92-ac6e-3863b1d76cf9.png)
SecondDim (Migrated from github.com) reviewed 2021-12-07 00:55:48 -05:00
@ -81,9 +85,14 @@ export default class BdkFile {
fs.writeFileSync(`${this.bdkPath}/config-yaml/configtx.yaml`, configtxYaml.getYamlString())
SecondDim (Migrated from github.com) commented 2021-12-07 00:55:47 -05:00
  • filename.startWith("orderer")
  • filename.startWith("peer")
- filename.startWith("orderer") - filename.startWith("peer")
SecondDim (Migrated from github.com) approved these changes 2021-12-07 01:40:58 -05:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cathayddt/bdk!17
No description provided.