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

General: typing "state.conversation.value.field" is too long. Remove the ".value" #49

Closed
Tracked by #640
Stevenic opened this issue Feb 24, 2023 · 4 comments
Closed
Tracked by #640
Assignees
Labels
breaking-change This enhancement would be a breaking change enhancement New feature or request JS & dotnet & Python Change or fix must apply to all three programming languages
Milestone

Comments

@Stevenic
Copy link
Contributor

Currently it feels pretty cumbersome to have to type state.conversation.value.field all the time. The .value seems like an unneeded step. It's there because there are a series of management operations. I'd like to try flipping the relationship such that management functions are nested under a .__manage property that hangs off the scope. That would mean that developers can use state.conversation.field to access their state properties and state.conversation.__manage.delete() to delete the current state.

@Stevenic Stevenic added enhancement New feature or request breaking-change This enhancement would be a breaking change labels Feb 24, 2023
@corinagum
Copy link
Collaborator

Idea: What do you think about state.convo.field? matches state.user.field and state.temp.field in length

@Stevenic Stevenic added this to the Private Preview milestone Mar 6, 2023
@corinagum
Copy link
Collaborator

Moving this milestone to //BUILD since it is not a blocker for private preview
FYI @govil1811 @Stevenic @tacri

@corinagum corinagum modified the milestones: Private Preview, BUILD Mar 16, 2023
@corinagum corinagum modified the milestones: BUILD, Ignite May 22, 2023
@corinagum corinagum added the JS & dotnet & Python Change or fix must apply to all three programming languages label Jun 30, 2023
@govil1811
Copy link
Contributor

P0

@corinagum
Copy link
Collaborator

Finished with #667

corinagum added a commit that referenced this issue Sep 13, 2024
…#2014)

## Linked issues

closes: #1947
closes #1371

#### TLDR: Node 20 is now supported!!! If you're eager for this, you
shouldn't need to wait for a release, as the affected packages were our
samples.

## Details

- Modified package configuration for `typescript` to only allow patch
updates. See Change details below for more information. This is
(ideally) temporary.
- Remove `@microsoft/teamsfx` as a dependency - it turns out this
dependency is entirely unused, but due to sub-dependencies was
preventing us from being able to support Node >=18. Because of this and
`[email protected]` now supporting node 20, teams-ai js package now
also runs with node 20 too!
- Removed `browserify` - unused dependency
- Updated Powered by AI docs to slightly clarify how AI module may use a
`planner`.

#### Change details

[TS made an
update](https://devblogs.microsoft.com/typescript/announcing-typescript-5-6)
that in 5.6 reveals previously 'hidden' TS errors.
`gpt-tokenizer` and `botbuilder` have TS errors that 5.6 catches. I
filed bugs for both packages:
 
[[Bug] Cannot upgrade to TS 5.6x due to build errors · Issue #49 ·
niieani/gpt-tokenizer
(github.com)](niieani/gpt-tokenizer#49)
[Cannot bump typescript to 5.6 due to botbuilder `INodeBuffer` error ·
Issue #4746 · microsoft/botbuilder-js
(github.com)](microsoft/botbuilder-js#4746)

## Attestation Checklist

- [x] My code follows the style guidelines of this project

- I have checked for/fixed spelling, linting, and other errors
- I have commented my code for clarity
- I have made corresponding changes to the documentation (updating the
doc strings in the code is sufficient)
- My changes generate no new warnings
- I have added tests that validates my changes, and provides sufficient
test coverage. I have tested with:
  - Local testing
  - E2E testing in Teams
- New and existing unit tests pass locally with my changes

### Additional information

> Feel free to add other relevant information below

---------

Co-authored-by: Corina Gum <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This enhancement would be a breaking change enhancement New feature or request JS & dotnet & Python Change or fix must apply to all three programming languages
Projects
None yet
Development

No branches or pull requests

3 participants