Skip to content
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

Add custom attributes to extensions management API #492

Merged
merged 5 commits into from
Oct 23, 2023

Conversation

asha15
Copy link
Contributor

@asha15 asha15 commented Sep 21, 2023

Purpose

$subject

currently the template listing API (api/server/v1/extensions) has a strict schema, from this PR we're doing the improvement to add metadata about the template. we can add the additional information as custom attributes in info.json file.

The improvement will support the below structure:

{
"id": "mobile-application",
    "name": "Mobile Application",
    "description": "Applications developed to target mobile devices.",
    "image": "abc.jpg",
    "category": "DEFAULT",
    "displayOrder": 4,
    "tags": [ "android" ],
    "type": "applications",
    "customAttributes":  [
            {
                "key": "publisher",
                "value": {
                    "displayName": "vendor",
                    "logo": "XYZ"
                }
            },
            {
                "key": "supportedTechnologies",
                "value": [
                    {
                        "displayName": "Flutter",
                        "logo": "https://www.svgrepo.com/show/353751/flutter.svg"
                    },
                    {
                        "displayName": "Android",
                        "logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Android_robot.svg/1745px-Android_robot.svg.png"
                    },
                    {
                        "displayName": "Swift",
                        "logo": "https://i.pinimg.com/originals/8f/50/63/8f50630ae0e1775196e4c270c573ce67.png"
                    },
                    {
                        "displayName": "React Native",
                        "logo": "https://www.datocms-assets.com/45470/1631026680-logo-react-native.png"
                    },
                    {
                        "displayName": "Iconic",
                        "logo": "https://images.prismic.io/ionicframeworkcom/66cfdbef-e59d-463a-8e24-12cb233e9d97_ionic+logo+blue.png?auto=compress,format"
                    }
                ]
            }
        ]
}

Related issue: wso2/product-is#16745

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email [email protected] to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to [email protected] and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

@asha15 asha15 marked this pull request as draft October 12, 2023 05:48
@asha15 asha15 marked this pull request as ready for review October 18, 2023 07:28
sumedhe
sumedhe previously approved these changes Oct 18, 2023
@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6610017882

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6610017882
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6610017882

@sumedhe sumedhe merged commit b077859 into wso2:master Oct 23, 2023
3 checks passed
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.

3 participants