-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update public facing id of project to be the id of the submission #3944
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.
This needs a rebase. Would be good to get this in, it's the right approach I think.
I think this needs to done fresh now, given the number of merge conflicts and new code that might have got added after. |
f3853bc
to
8e14b0c
Compare
<p class="invoice-block__title">{% trans "Some details" %}</p> | ||
<p class="invoice-block__meta">XXXXXX</p> | ||
</li> | ||
</ul> |
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.
Removed this unused template.
{% trans "Are you sure you want to accept and approve the contract for commencing the project?" %} | ||
{% trans "This cannot be undone." %} | ||
</p> | ||
{% url 'apply:projects:contract_approve' pk=object.submission.id as url %} |
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.
Minor copy and style update.
{% trans "Are you sure you want to submit contracting documents?" %} | ||
{% trans "Make sure you have uploaded correct contract and all required contracting documents." %} | ||
</p> | ||
{% url 'apply:projects:contract_doc_upload' pk=object.submission.id as url %} |
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.
Minor style update of the modal text.
if user.is_superuser: | ||
return True, "Superuser can view all documents" | ||
if user == project.user: | ||
return True, "Vendor can view all documents" |
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.
superuser and the applicant itself were not able to view the contracting documents uploaded. I've updated the code to fix it, please advise. @frjo @sandeepsajan0 @wes-otf
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.
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.
@theskumar This is a bug so your fix is correct. Applicant are the ones uploading these documents so they should be able to view them.
My guess this bug was introduced when we added the feature to optionally limit what internal groups can access these documents (staff, finance etc.).
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.
ok
This became a bit bigger PR than I expected. Almost all of the public facing urls should be in the form of There are minor style update to models and a bug fix for contracting document visibility. @frjo @wes-otf best way to test this out is to browse through the project section and try out all the flow. |
Fixes #4249. Migrates all project comments to the associated application, and loads the applications comments via htmx (merging in project activities). This was the best solution I could come up with until we potentially take a step a coupling the two closer (ie. sharing an ID (#3944), a URL space, and/or a detail view). I had tried another version of this that did the same migration but loaded the project view via htmx from the application detail view, which made everything feel more consistent, but I had concerns about the user needed to see the status/stages bar when making a comment which is where the UI got hairy.
f9e93d7
to
38781e7
Compare
The edit invoice url still uses the project id. Some test seems to need to be updated as well. |
No worries. On it. |
42038c6
to
ed7fa4b
Compare
@theskumar This needs a new rebase after your other PR that I have merged in. After the rebase I plan to merge these three PR:s as well. Have tested them on test and they seem to work without issues. |
Add a non-intrustive way to display that a submission/application has been converted to project and also link to the project tab directly from it. I considered showing the status of the project as well, but it felt little too much of info, so just displaying the text - "Project"
ed7fa4b
to
8ccbe0a
Compare
…roject (#4413) Part 1 of: - #4355 Depends on: - #3944 Update the detail pages for submissions, communications, and projects to use the same status header when an application has transitioned to a project. The header behavior mimics the status bar display for concept and proposal applications, showing the proposal stages as the application moves from the concept phase to the proposal phase. It reuses the existing status bar generation template tag. DRY! Also, enable the communication form if the submission is archived but the project is active. ## Test Steps - Verify that a user can leave a comment in archived submission mode if it has an associated project, by navigating to the URL /submissions/[id]/#communications. - If an application has an associated project, ensure the project's status header is displayed.
Ready for final review and merge. I've merged in project header pr #4413 . |
Depends on: - #3944 - #4413 What's changed: - project and submission to use the same communication page - update urls to point to the new page - update urls in email. - Cleanup the old comment view page code - new permission check added "view_comments" -- anyone with either access to project or submission will have access to it's comments page. Other updates: - Global activity feed has updated text for the comments - New function based view is use to show and add comment - Remove the use of tab.js on the submisison/project detail page, all the tabs are server-rendered full-page now. Fixes #4355
Update the project urls to use it's submission id instead of the project's db id
The reason for the update is that there are two main entities in the system, one submission and other project.
The ids of the submission is linkable in the communiction and also used for referencing at different places.
Considering a project is an extension of application submission, if we have the project publically available id same as that of it's submission it always to link and reference the project by the same id.
Test Steps