Skip to content

Bug fixes: amend DCO sign-off and pass data structures to the submission routes#48

Merged
vishnoianil merged 3 commits intoinstructlab:mainfrom
nerdalert:yaml-line-breaks
Jul 10, 2024
Merged

Bug fixes: amend DCO sign-off and pass data structures to the submission routes#48
vishnoianil merged 3 commits intoinstructlab:mainfrom
nerdalert:yaml-line-breaks

Conversation

@nerdalert
Copy link
Member

@nerdalert nerdalert commented Jul 9, 2024

  • Set the length in yaml.dump to enforce a multiline formatting.
  • Pass interfaces to the submission APIs to clean up the number of arguments sent and reduce bad code, e.g. KnowledgeYamlData and SkillYamlData along with AttributionData.
  • Fix amend submissions to add DCO sign-off.
  • Have the user add an email to their edit submission because a GitHub account does not have to have an associated email to look up. Same with name for DCO.
  • Add the ability for the user to specify the submission file path. Sanitizes the file path to be usable. On edit, the file path is pulled in for editing from the existing PR. If amended, the files are added to the new git tree with the new file path. Example: https://github.com/brents-pet-robot/taxonomy-sub-testing/pull/117/files

Closes #47
Closes #42
Closes #32

Apologies for cramming so many things in this PR but each issue would be a rebase on the same files and with the target date of tomorrow.. ¯\(ツ)

nerdalert added 2 commits July 9, 2024 00:19
Setting the lengths to 80 takes care of line breaking for multiline
via the yaml lib.

Signed-off-by: Brent Salisbury <bsalisbu@redhat.com>
- Pass KnowledgeYamlData and SkillYamlData instead of params
to the submition server side apis.

Signed-off-by: Brent Salisbury <bsalisbu@redhat.com>
@nerdalert nerdalert marked this pull request as draft July 9, 2024 19:42
- The user needs to be able to play the qna.yml and attribution
files in the appropriate place in the taxonomy tree as well as
being able to edit the file path.

Signed-off-by: Brent Salisbury <bsalisbu@redhat.com>
@nerdalert nerdalert marked this pull request as ready for review July 10, 2024 03:33
@nerdalert nerdalert requested a review from vishnoianil July 10, 2024 03:36
Copy link
Member

@vishnoianil vishnoianil left a comment

Choose a reason for hiding this comment

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

LGTM

@vishnoianil vishnoianil merged commit 391fd33 into instructlab:main Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants