Skip to content

Remove mailing address 1,2,3 everywhere - #4658

Merged
lukaszgryglicki merged 5 commits into
devfrom
unicron-4638-remove-mailing-address-fields-from-templates-and-code
May 14, 2025
Merged

lukaszgryglicki merged 5 commits into
devfrom
unicron-4638-remove-mailing-address-fields-from-templates-and-code

Conversation

@lukaszgryglicki

@lukaszgryglicki lukaszgryglicki commented May 8, 2025 •

Copy link
Copy Markdown
Member

This removes mailing address from hardcoded python & golang templates. Probably only golang APIs are used now.

cc @mlehotskylf @jarias-lfx @thakurveerendras

This needs to be merged into dev - then VERY carefully tested all possible cases and ONLY if we decide that everything is correct deployed to prod.

This is for #4638

@lukaszgryglicki

Copy link
Copy Markdown
Member Author

@lukaszgryglicki

Copy link
Copy Markdown
Member Author

TODO: Update this PR to only remove mailing address fields for ICLA not CCLA as it currently does.

Signed-off-by: Lukasz Gryglicki <[email protected]>
@lukaszgryglicki

lukaszgryglicki commented May 11, 2025 •

Copy link
Copy Markdown
Member Author

@mlehotskylf @jarias-lfx updated the PR after slack discussion - PTAL.
Note:

  • Added a new hardcoded template ApacheStyleCNCFTemplateID (based on ApacheStyleTemplateID) with UUID: 3c6bec1d-7394-468a-8681-ce1b7226e326 (generated random one).
  • To use this new template cla-prod-projects entry for CNCF (CNCF's project_id is 'd8cead54-92b7-48c5-a2c8-b1e295e8f7f1') must be updated to have project_template_id = '3c6bec1d-7394-468a-8681-ce1b7226e326').
  • Now this new template no longer uses CONTACT_EMAIL template variable which is filled in PCC and replaces {{ CONTACT_EMAIL }} internally. CNCF wanted to remove support for sending signed PDFs to [email protected]. It now uses CONTACT_URL instead, this is what they wanted. It will be used as follows:
If providing a signed PDF, open a ticket at {{ CONTACT_URL }} and attach the scanned form

Instead of old:

If emailing signed PDF, send to: {{ CONTACT_EMAIL }}

To support this, PCC must be updated to send this meta field instead: So instead of sending field.TemplateVariable = "CONTACT_EMAIL" in input.MetaFields it must send field.TemplateVariable = "CONTACT_URL" if template type chosen is ApacheStyleCNCFTemplateID.
Please see my LG: comments in code in this PR. PCC task will be needed for this.

Basically in PCC we need it to ask for contact URL instead of Contact Email if template chosen is ApacheStyleCNCFTemplateID (3c6bec1d-7394-468a-8681-ce1b7226e326) (eventually also add this new template to its drop-down list) and then send user’s input as CONTACT_URL instead of CONTACT_EMAIL.

cc @thakurveerendras

@lukaszgryglicki

Copy link
Copy Markdown
Member Author

TODO: remove CNCF-specific template (after SU discussion) and see what actually happens when no project_template_id is chosen. In that case which template must be updated for CNCF?
cc @mlehotskylf @jarias-lfx @thakurveerendras

@lukaszgryglicki

Copy link
Copy Markdown
Member Author

Signed-off-by: Lukasz Gryglicki <[email protected]>
@lukaszgryglicki

Copy link
Copy Markdown
Member Author

Updated details.

Signed-off-by: Lukasz Gryglicki <[email protected]>
@lukaszgryglicki
lukaszgryglicki merged commit 6f5c9c0 into dev May 14, 2025
lukaszgryglicki added a commit that referenced this pull request May 7, 2026
…ling-address-fields-from-templates-and-code

Remove mailing address 1,2,3 everywhere

This branch was previously deployed

1 inactive deployment
dev — 5bdb8d05 Deployed May 14, 2025 by lukaszgryglicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants