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

Migration to set all kanban and github addons of all communities to use camelCase type #84

Open
ailisp opened this issue Jan 5, 2024 · 0 comments

Comments

@ailisp
Copy link
Collaborator

ailisp commented Jan 5, 2024

Currently we have all community kanban and github addons look like this.

kanban:

{
  metadata: {
    id: uuid(),
    type: "kanban.post_board",
    title: "",
    description: "",
    ticket: {
      type: "kanban.post_ticket",
      features: {
        author: true,
        like_count: true,
        reply_count: false,
        sponsorship_request_indicator: false,
        requested_sponsorship_value: false,
        requested_sponsor: false,
        approved_sponsorship_value: true,
        sponsorship_supervisor: true,
        tags: true,
        type: true,
      },
    },
  },
  payload: {
    columns: {},
    tags: { excluded: [], required: [] },
  },
}

github:

{
  columns: {},
  dataTypesIncluded: { Issue: false, PullRequest: true },
  description: "",
  repoURL: "",
  ticketState: "all",
  title: "",
  metadata: {
    id: uuid(),
    type: "github.kanban_board",
    ticket: {
      type: "github.kanban_ticket",
      features: { id: true, author: true, labels: true, type: true },
    },
  },
}

We want to rename all types above to camel case, that is:

    type: "kanban.post_board", => "kanban.postBoard"
    type: "kanban.post_ticket", => "kanban.postTicket"
    type: "github.kanban_board", => "github.kanbanBoard"
    type: "github.kanban_ticket", => "github.kanbanTicket"

These can be update with set_community_addon in near-cli, but there are many communities to run with cli commands. A more efficient way would be writing a migration in this contract repo and batch update these addon type and metadata type.

cc @Megha-Dev-19

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

No branches or pull requests

1 participant