Closed indrora closed 2 years ago
I don't think we should do this.
@indrora I agree with Laren that we'd be complicating the process (& adding work) to split the metadata. However, I'll poll the team to establish whether merge conflicts merit the changes you're proposing.
My observations so far:
as for "where do the titles come from", here's a draft of my suggestion:
metadata/ebs.yml
would look like
ebs_StartSnapshot:
title: Create a &EBS; snapshot using an &AWS; SDK
title_abbrev: Create a snapshot
synopsis: create an &EBS; snapshot.
category: []
services:
ebs: {StartSnapshot}
rust/ebs/snippets.yml
would look like
ebs_StartSnapshot:
- sdk_version: 1
github: rust/ebs
tag: ebs.rust.create-snapshot-start
meanwhile, this might be more complicated in another language:
ruby/ebs/snippets.yml
ebs_StartSnapshot:
- sdk_version: 1
github: ruby/ebs
body:
- tag: ebs.ruby.create-snapshot-start
before: Start the &EBS; volume snapshot
- tag: ebs.ruby.create-snapshot-wait
before: In order to make sure further &EBS; operations work right, you must wait for the state to change to READY
after: The &EBS; snapshot is now in progress and you can continue working with the volume.
as for automatically associating these snippets, the Rust example I gave could easily be simply declared inline:
//snippet-start[ebs.rust.create-snapshot-start]
//snippet-group[ebs_CreateSnapshot]
...
//snippet-end[ebs.rust.create-snapshot-start]
I need more data on "major" and "horrendous".
Your proposed format change:
Extra tag in code:
Currently, each service's SOS data is in one giant file. This means that there's a good risk of merge conflicts and there's even more chances for things to go wrong.
The SOS metadata should be split up into a few smaller chunks.
Suggestion:
.doc_gen
so for SQS in Javav2, you'd have
javav2/sqs/snippets.yml
, for SNS in dotnet v3 it'd bedotnetv3/sns/snippets.yml