Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Connection] Unify connection classes from sdk & execution #170

Merged
merged 9 commits into from
Aug 28, 2023

Conversation

brynn-code
Copy link
Contributor

@brynn-code brynn-code commented Aug 25, 2023

Unify connection classes from promptflow.connections and promptflow.entity.connections (sdk).

  • asdict() in tools code will be changed to dict(connection) as connection object is not dataclass instance anymore.
  • CustomConnection will not support initialize by CustomConnection(key1=val1, key2=val2) any more, user should use CustomConnection(configs={key1: val1}, secrets={key2: val2}).
  • When using customconnection in script tool, using connection.key1 will print a warning, we recommend using connection.secrets[key1] to avoid some key has same name with connection object itself, such as name.

Signed-off-by: Brynn Yin <biyi@microsoft.com>
@brynn-code brynn-code requested a review from a team as a code owner August 25, 2023 07:16
@brynn-code brynn-code force-pushed the brynn/unify-connection-classes branch from 9767906 to 47bd8c4 Compare August 25, 2023 07:19
@github-actions
Copy link

github-actions bot commented Aug 25, 2023

SDK CLI Test Result brynn/unify-connection-classes

194 tests   179 ✔️  8m 42s ⏱️
    1 suites    15 💤
    1 files        0

Results for commit 6ee808b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 25, 2023

Executor E2E Test Result brynn/unify-connection-classes

85 tests   83 ✔️  1m 42s ⏱️
  1 suites    2 💤
  1 files      0

Results for commit 6ee808b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 25, 2023

Executor Unit Test Result brynn/unify-connection-classes

95 tests   95 ✔️  17s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 6ee808b.

♻️ This comment has been updated with latest results.

@brynn-code brynn-code added promptflow-tools promptflow tools code promptflow labels Aug 25, 2023
@wangchao1230 wangchao1230 added the sdk prompt flow SDK label Aug 25, 2023
Signed-off-by: Brynn Yin <biyi@microsoft.com>
@github-actions
Copy link

github-actions bot commented Aug 25, 2023

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10723 8046 75% 40% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/promptflow/promptflow/_core/connection_manager.py 82% 🟢
src/promptflow/promptflow/_sdk/entities/_connection.py 89% 🟢
src/promptflow/promptflow/connections.py 100% 🟢
TOTAL 90% 🟢

updated for commit: 6ee808b by action🐍

Signed-off-by: Brynn Yin <biyi@microsoft.com>
Signed-off-by: Brynn Yin <biyi@microsoft.com>
@brynn-code brynn-code force-pushed the brynn/unify-connection-classes branch 3 times, most recently from f98ce4d to 233e00a Compare August 25, 2023 09:11
Signed-off-by: Brynn Yin <biyi@microsoft.com>
@brynn-code brynn-code force-pushed the brynn/unify-connection-classes branch from 233e00a to a3cee55 Compare August 25, 2023 09:16
Signed-off-by: Brynn Yin <biyi@microsoft.com>
wangchao1230
wangchao1230 previously approved these changes Aug 25, 2023
lalala123123
lalala123123 previously approved these changes Aug 25, 2023
Stephen1993
Stephen1993 previously approved these changes Aug 25, 2023
0mza987
0mza987 previously approved these changes Aug 25, 2023
Signed-off-by: Brynn Yin <biyi@microsoft.com>
@brynn-code brynn-code merged commit 5d31a42 into main Aug 28, 2023
12 checks passed
@wangchao1230 wangchao1230 deleted the brynn/unify-connection-classes branch September 5, 2023 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fundamental promptflow promptflow-tools promptflow tools code sdk prompt flow SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants