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
feat(Submit): Improve and add action menu #681
base: master
Are you sure you want to change the base?
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 like the "create when needed" logic. I'd rather show it when needed and hide it when not available.
-
I remember that CF Tool fails to submit to URLs with problem code "0" which is in the URL when you enter a running contest, which is the reason I parsed the URL for CF Tool 1.0. I think we can pass the URL to CF Tool only when we fail to parse the URL.
Co-authored-by: Yufan You <ouuansteve@gmail.com>
Yup, I see it is still open. What about this solution instead. If url ends with "0" we make it "A" and submit with that new modified url. |
Co-authored-by: coder3101 <coder3101@users.noreply.github.com>
@ouuan Anythine else you want me to update in this PR? |
1. Refactor memebers so that they are more readable and sensible 2. Show CFTool error only when submitting the solution, eliminate the pre-check 3. Deprecate the use of CF tool < 1.0 as its support should be removed in next release cycle. (Reason: CF tool was beta and progressively it added URL support and now it is stable and to avoid legacy code to support it. We deprecate it now, In next release cycle, if we detech version < 1.0, we fail the submission requesting an update. In this way we do not have to worry about URL parsing and leverage this task to the tool that does the submission) 4. Improve code and re-usability. 5. Submit button will be enabled always, If it is not installed, it will show error during submission, Submit button and action will be hidden from tabs that do not have CF URL.
Co-authored-by: coder3101 <coder3101@users.noreply.github.com>
After this code makes to beta, the next alpha/master will have a commit where we will completely drop the support for CF Tool < 1.0 because of the following:
As a result of above, this commit adds a warning to the user that they need to update cf tool to 1.0 or above, as in future release we will not support it. |
Haven't read the code yet. But this problem remains. |
Sure! I will fix it. |
Fixed. Please review now! |
This commit improves and add following:
Related Issues / Pull Requests
Fixes #679 and Fixes #201
Motivation and Context
This is minor changes to CF Tool and submission.
How Has This Been Tested?
Arch Linux with KDE
Screenshots (if appropriate)
Checklist
old
attribute is updated or it is resolved in SettingsUpdater.tr()
orQCoreApplication::translate()
.Additional text
In future we will re-write submission logic, till then either this PR gets merged or updated to reflect the changes.