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
[2778] Authorize empty string for direct edit #2781
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have any issue with the code, it looks exactly as it should but could you update the test suite project/diagrams/graphical-dnd.cy.js
to our new standards and fix its flakiness.
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="24.036" tests="1" failures="1">
<testsuite name="Root Suite" timestamp="2023-12-08T16:36:07" tests="0" file="cypress/e2e/project/diagrams/graphical-dnd.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="/projects/:projectId/edit - graphical DnD" timestamp="2023-12-08T16:36:07" tests="1" time="24.022" failures="1">
<testcase name="/projects/:projectId/edit - graphical DnD Check graphical Drag and Drop" time="0.000" classname="Check graphical Drag and Drop">
<failure message="expected false to be true" type="AssertionError"><![CDATA[AssertionError: expected false to be true
at Context.eval (webpack:///./cypress/support/reactFlowCommands.js:51:64)
+ expected - actual: failed to generate Mocha diff
]]></failure>
</testcase>
</testsuite>
</testsuites>
Once you will have updated the pull request, I won't require you to update yet another test. Have a look at the explorer.cy.ts suite to see how you could improve it and don't hesitate to talk to me if you have any question. An improvement to our integration tests to help validate your contribution would be nice too.
I'm sorry to have to force everybody to help in this effort of improving our integration tests but it won't move forward otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably also apply to TreeItemDirectEditInput
?
3ee5fea
to
0b59514
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor remarks.
e34fdad
to
972cdd0
Compare
Bug: #2778 Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
972cdd0
to
fb1d97c
Compare
Bug: #2778
Pull request template
General purpose
What is the main goal of this pull request?
Project management
priority:
andpr:
labels been added to the pull request? (In case of doubt, start with the labelspriority: low
andpr: to review later
)area:
,difficulty:
,type:
)CHANGELOG.adoc
been updated to reference the relevant issues?CHANGELOG.adoc
? (Including changes in the GraphQL API)CHANGELOG.adoc
? For example indoc/screenshots/2022.5.0-my-new-feature.png
Architectural decision records (ADR)
[doc]
?CHANGELOG.adoc
?Dependencies
CHANGELOG.adoc
?CHANGELOG.adoc
?Frontend
This section is not relevant if your contribution does not come with changes to the frontend.
General purpose
Typing
We need to improve the typing of our code, as such, we require every contribution to come with proper TypeScript typing for both changes contributing new files and those modifying existing files.
Please ensure that the following statements are true for each file created or modified (this may require you to improve code outside of your contribution).
useMutation<DATA_TYPE, VARIABLE_TYPE>(…)
useQuery<DATA_TYPE, VARIABLE_TYPE>(…)
useSubscription<DATA_TYPE, VARIABLE_TYPE>(…)
useMachine<CONTEXT_TYPE, EVENTS_TYPE>(…)
useState<STATE_TYPE>(…)
?.
(if the GraphQL API specifies that a field cannot benull
, do not treat it has potentiallynull
for example)let diagram: Diagram | null = null;
)Backend
This section is not relevant if your contribution does not come with changes to the backend.
General purpose
Architecture
Review
How to test this PR?
Please describe here the various use cases to test this pull request