You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "mappjzc (via GitHub)" <gi...@apache.org> on 2023/03/22 15:42:19 UTC

[GitHub] [incubator-devlake] mappjzc opened a new issue, #4749: [Bug][migrationhelper] ChangeColumnsType failed with nil function

mappjzc opened a new issue, #4749:
URL: https://github.com/apache/incubator-devlake/issues/4749

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   ![img_v2_d4152e94-5810-48df-a5e9-9b2cfe4fca4g](https://user-images.githubusercontent.com/2921251/226957519-cb4eabed-4fc0-447b-a48f-0135169982a6.jpg)
   
   ### What do you expect to happen
   
   No error.
   
   ### How to reproduce
   
   use follow code to test
   ```golang
   package e2e
   
   import (
      "github.com/apache/incubator-devlake/core/context"
      "github.com/apache/incubator-devlake/core/errors"
      "github.com/apache/incubator-devlake/core/runner"
      "github.com/apache/incubator-devlake/helpers/e2ehelper"
      "github.com/apache/incubator-devlake/helpers/migrationhelper"
      "github.com/apache/incubator-devlake/plugins/jira/models"
      "testing"
   )
   
   type script struct {
   }
   
   func (s script) Up(basicRes context.BasicRes) errors.Error {
      //TODO implement me
      panic("implement me")
   }
   
   func (s script) Version() uint64 {
      return 124533558
   }
   
   func (s script) Name() string {
      return "hello"
   }
   
   func TestRenameColumnDataFlow(t *testing.T) {
   
      dataflowTester := e2ehelper.NewDataFlowTester(t, "jira", nil)
      basicRes := runner.CreateBasicRes(dataflowTester.Cfg, dataflowTester.Log, dataflowTester.Db)
      err := migrationhelper.ChangeColumnsType[models.JiraRemotelink](basicRes, &script{}, "_tool_jira_remotelinks", []string{"url"}, nil)
      if err != nil {
         panic(err)
      }
   }
   ```
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   main
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] mindlesscloud closed issue #4749: [Bug][migrationhelper] ChangeColumnsType failed with nil function

Posted by "mindlesscloud (via GitHub)" <gi...@apache.org>.
mindlesscloud closed issue #4749: [Bug][migrationhelper] ChangeColumnsType failed with nil function 
URL: https://github.com/apache/incubator-devlake/issues/4749


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org