Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

feat!: use microgenerator#239

Merged
busunkim96 merged 15 commits into
masterfrom
microgen-conversion
Dec 14, 2020
Merged

feat!: use microgenerator#239
busunkim96 merged 15 commits into
masterfrom
microgen-conversion

Conversation

@busunkim96

@busunkim96 busunkim96 commented Dec 10, 2020

Copy link
Copy Markdown
Contributor

Re-opening #227 for cleaner comment history and reviewer list.

"Jump to" doesn't work because there are too many files. Here are direct links:

@busunkim96 busunkim96 requested a review from a team as a code owner December 10, 2020 00:59
@busunkim96 busunkim96 requested review from a team and leahecole December 10, 2020 00:59
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 10, 2020
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2020
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2020
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 10, 2020
display_name=display_name, mime_type=mime_type,
content_uri=content_uri)

document.knowledge_types.append(
dialogflow.types.Document.KnowledgeType.Value(knowledge_type))
getattr(dialogflow.Document.KnowledgeType, knowledge_type)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is this an acceptable way to go from a string to the enum, or should I do something else? @software-dov

    class KnowledgeType(proto.Enum):
        r"""The knowledge type of document content."""
        KNOWLEDGE_TYPE_UNSPECIFIED = 0
        FAQ = 1
        EXTRACTIVE_QA = 2

@busunkim96

Copy link
Copy Markdown
Contributor Author

@software-dov @leahecole This is now ready for review. :)

@leahecole

leahecole commented Dec 10, 2020

Copy link
Copy Markdown
Contributor

I don't know too much about dialogflow, but the tests passing is a good sign to me, and the upgrading guide looks good!

@software-dov software-dov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

UPGRADING looks good, samples look good. I'm guessing the samples all run.

@busunkim96 busunkim96 merged commit 57c90a5 into master Dec 14, 2020
@busunkim96 busunkim96 deleted the microgen-conversion branch December 14, 2020 20:59
@release-please release-please Bot mentioned this pull request Dec 14, 2020
gcf-merge-on-green Bot pushed a commit that referenced this pull request Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants