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

feat!: use microgenerator #239

Merged
merged 15 commits into from Dec 14, 2020
Merged

feat!: use microgenerator #239

merged 15 commits into from Dec 14, 2020

Conversation

busunkim96
Copy link
Contributor

@busunkim96 busunkim96 commented Dec 10, 2020

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 review from a team as code owners 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
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
Contributor Author

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

@leahecole
Copy link
Contributor

leahecole commented Dec 10, 2020

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

Copy link

@software-dov software-dov left a comment

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.

None yet

4 participants