-
Notifications
You must be signed in to change notification settings - Fork 328
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
Enhancement: teams cache remove
should work with new teams client
#5998
Comments
Do you have some more information about what's not working and what to change? |
The current command doesn't do anything regarding the new Teams client. The cache files are stored in a different location. |
I'm wondering if maybe we should add a switch |
I suggest we use |
Updated the spec @waldekmastykarz, could you have another look? |
Looks good! Just realized, that if we use |
Do we really consider this command to be a scripting command? I would assume it's just something like an |
It's not about scripts: it's about the expectations. The SPFx project upgrade command, when not provided any arguments, upgrades the project to the latest SPFx version that we support. That expectation doesn't change when we introduce new versions, only the target version moves. If you want to upgrade to a specific version, you can provide its version explicitly. Here we'd be changing how the command works, so if you used it in the past to clear the cache for the classic client, and you upgrade the CLI, it no longer works for you, without changing how you invoke it. This is why I'm considering it a breaking change. |
In my opinion, this is quite identical to |
This is tricky. Your reasoning is based on an assumption that everyone is already on the new Teams client, which I don't think is the case. Many organizations run software that's out of support because the cost of upgrade is non trivial to them. I stand by my opinion that changing which client we target by default is a breaking change. The few months between July and September/October, when our next major version will likely land, isn't that big of an issue I think, and it allows us to abide by our contract of not changing functionality in non-backwards compatible way in non-major releases. |
From what I am aware the migrate between classic teams and new is rather seamless as it's just the client. All teams and apps remain. Am I missing something here? I think the similarity with this command to In the other hand what @waldekmastykarz mentioned that it's only a few months between the change and next major so if this command is not that much used I guess it's not a big deal. So to sum up: |
Tbh, this is quite tricky. I understand both cases, in which this would appear as a breaking change, and on the other hand that everyone is being forced to the new version anyway. Personally, I'm weighing more towards using Given the timeline @milanholemans provided, people are already shifting to the new experience, so we should update this command to align with the timeline. We can update the remarks in our docs, making it clear that the command now supports the |
To be safe, shall we include this into the next major? We already have a branch for it so we can start working on it. |
All good for me, then I would also assume we will go with |
Currently the command
teams cache remove
doesn't work with the new Teams client. Let's change the command to support the new teams client as well.All info can be found here: https://learn.microsoft.com/en-us/microsoftteams/troubleshoot/teams-administration/clear-teams-cache
Let's add a new option so we support both the new and classic Teams client:
-c, --client [client]
new
,classic
. Default value isnew
.The text was updated successfully, but these errors were encountered: