-
Notifications
You must be signed in to change notification settings - Fork 140
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
P0: Intake 'Objective' Flag for Topcoder Users #3281
Comments
As I understand, this question should be stored in some filed like: details.intakePurpose With the possibles values:
If project is being created by a customer user and we don't show this question, should we set the value of this field by default to |
Yes, we are thinking of something similar, however, the problem is that we don't yet have support for hide/show of a question based on user role. Can you please create a separate task for that and get it done with the bug bash or may you directly. |
I was thinking to hardcode such a question into the create form, though supporting it as a general ability to hide question depend on the user role sounds better to me. I'll migrate permission method from Project Service for checking permissions and will add the support for such questions myself or via bug bash. |
Cool. I didn't get where and why we need to migrate the permission method? |
In Project Service we created reusable method to check permissions described in the issue General permission methods We also, have a similar method client-side but it's different so I was thinking to introduce new functionality which depends on the user permissions using new general method from server-side (copy it to client side and adapt if necessary). |
Okay. I think we should do it with logic we have right now without much refactoring. we would do refactoring later. |
I propose to add a new property userPermissionCondition = { "topcoderRoles": ['administrator', 'Connect Administrator', 'Connect Copilot', 'Connect Manager', 'Connect Account Manager', 'Connect Copilot Manager'] } Questions:
|
@maxceem I am still processing the
|
On the summary page we explicitly list the indexes of sections to show. So if we keep this question on a separate section, we can decide if we want to show it or no on the summary section. The concern I have regarding showing it is that we have a title and intro text which is shown on the 2nd section, so the intake question would be shown on top of them like this https://monosnap.com/file/0BdVrDhV16ovoTUccMDv1MT8yh3xBg. |
Okay. Got it. I think we are good then, we can control visibility of this new section via template itself, right? So, we can hide it if the position of the section on the summary screen looks odd to the product managers, and we can show it anytime they want it. So, I guess, no changes needed for this. |
Right. |
@vikasrohit do you have any other ideas how would like to handle it? I like to use this approach because of its universality as we've started using this approach for defining permissions everywhere. If you strictly don't want to expose the name of permissions in templates (even though we expose them in the source code). We can create some simpler custom values for this property. We can name the property
And we would define internally in the source code, which set of permissions each of these values mean. |
Exposing permissions name is not bad but exposing the exact role name might be risky (though I can not think of exact risk). And you are right, we are exposing the role names in our public source code. Lets go ahead with your current suggested approach of using roles directly in the new permission field. |
…OnEdit" Now when portal subSection type shows section it take into account if original section is not hidden by condition or hiddenOnEdit This is to support issue #3281
@vikasrohit it's in done and deployed to DEV via two commits:
For testing you can use the next link which has intake question: https://connect.topcoder-dev.com/new-project/app_new_intake
Note, that as for customer the question is hidden, so such question doesn't have any value and thus is not defined at all in project details data. Let me know if it works good for you, and I'll take care about the other issue #3300 |
It should work for all kind of nodes, same like |
Great!! I guess then it would work. Let me know if you see any issue with it. |
Working as per requirements on production. |
Objective: Add a data flag ("Customer Project Request" vs. "Demo/Test") for Topcoder user roles to indicate their purpose for submitting project intake. This flag will serve two purposes. First, it will aid ensuring that we have cleaner data for internal analytics purposes. Second, it will serve the routing of new projects alerts to BDRs/AEs.
Requirements:
If a Topcoder user role (admin/manager/copilot) accesses a project intake form, when the intake form loads for these users they should see the following on the first screen of each intake form:
Question Title: "Intake Purpose"
Checkbox Answer Options:
"Submitting Client Request"
"Internal Project"
"Demo/Test/Other"
Note: This should be a required question and answer for all Topcoder users who are submitting an intake form.
The text was updated successfully, but these errors were encountered: