-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Workspace - Workspace with an annual subscription can be deleted without an error #55666
Comments
Triggered auto assignment to @muttmuure ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace with an annual subscription can be deleted without an error What is the root cause of that problem?New Feature What changes do you think we should make in order to solve the problem?First initialise a new useState and function to downgrade the workspace to const [isDowngradeModalOpen, setIsDowngradeModalOpen] = useState(false);
const handleDowngradeModal = (type:SubscriptionType) => {
Subscription.updateSubscriptionType(type);
return;
} and then explicitly check if the Subscription type is App/src/pages/workspace/WorkspacesListPage.tsx Lines 185 to 199 in 2c846db
onSelected: () => {
if (privateSubscription?.type === CONST.SUBSCRIPTION.TYPE.ANNUAL){
setIsDowngradeModalOpen(true);
return;
}} Define a new What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)we can also redirect the user to Subscription settings page where they can change the type to |
@muttmuure Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
We anticipated this to happen. This is happening because it is hard to meet exact requirement for the said error to appear, this is also mention in original PR - #54278 (comment). We also got this response from internal member on how to reproduce this error, but neither I or contributor could reproduce it reliably. We tested expected result by manually simulating error in code. I am not sure how to handle this, as said above we tried everything to naturally reproduce this but no luck. |
Don't we allow workspace deletion and annual subscription cancelation in the first month? |
I'm not sure if what we're looking at here is a bug |
Looks like we can close |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.89-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: #54278
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
This will give an error Looks like you're on an annual subscription. Please downgrade your account from your account settings before trying again
Actual Result:
No error is displayed and workspace with an annual subscription can be deleted without changing subscription
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6722131_1737663128557.bandicam_2025-01-23_22-26-57-013.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: