Git Product home page Git Product logo

yunti's People

Contributors

carrotzpc avatar lihaorong840506 avatar zggmd avatar

Watchers

 avatar  avatar

yunti's Issues

[Bug] Data field has changed when create a merge request

💻 系统环境 | Operating System

Windows

🐛 问题描述 | Bug Description

API:

Write your query or mutation here

mutation createMergeRequest($mergeRequestInput: MergeRequestInput!) {
  createMergeRequest(mergeRequestParam: $mergeRequestInput) {
    sourceBranchName,
    targetBranchName,
    title,
    description,
    options,
    mergeRequestStatus,
    createAt,
    updateAt,
  }
}

Before query variables:

{ 
  "mergeRequestInput":
  {
    "source_branch":"app-lfon8/user-0ekq4/tttt2",
    "target_branch":"app-lfon8/user-0ekq4/ttt",
    "title":"tttt",
    "description":"ttttt",
    "assignee_id":"user-0ekq4",
    "options": "{\"delSourceBranch\":1}"
  }
}

Required query variables:

{ 
  "mergeRequestInput":
  {
    "sourceBranch":"app-lfon8/user-0ekq4/tttt2",
    "targetBranch":"app-lfon8/user-0ekq4/ttt",
    "title":"tttt",
    "description":"ttttt",
    "assigneeId":"user-0ekq4",
    "options": "{\"delSourceBranch\":1}"
  }
}

🚦 期望结果 | Expected Behavior

{ 
  "mergeRequestInput":
  {
    "sourceBranch":"app-lfon8/user-0ekq4/tttt2",
    "targetBranch":"app-lfon8/user-0ekq4/ttt",
    "title":"tttt",
    "description":"ttttt",
    "assigneeId":"user-0ekq4",
    "options": "{\"delSourceBranch\":1}"  // new added
  }
}

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

"options": "{"delSourceBranch":1}":

delSourceBranch: 1 => delete source branch after merged.

delSourceBranch: 0 => nothing to do after merged.

[Bug] 'nothing to commit' error occured when I resolve conflict

💻 系统环境 | Operating System

Windows

🐛 问题描述 | Bug Description

[Nest] 1  - 03/26/2024, 3:25:57 PM   ERROR [AllExceptionFilter] huangzhao(User)@::ffff:172.16.156.253 [CJ1z0byltGajjHW78cGt1] POST /-/yunti/api resolveConflict- - [500] - => QueryFailedError: nothing to commit
    at Query.onResult (/usr/src/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:158:37)
    at Query.execute (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/connection.js:478:34)
    at PacketParser.onPacket (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/connection.js:97:12)
    at PacketParser.executeStart (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/connection.js:104:25)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Readable.push (node:internal/streams/readable:234:10)
[Nest] 1  - 03/26/2024, 3:25:57 PM   ERROR [AllExceptionFilter] ER_UNKNOWN_ERROR
mutation resolveConflict($conflictResolveInput: ConflictResolveInput!) {
  resolveConflict(conflictResolveInput: $conflictResolveInput)
}
[Nest] 1  - 03/26/2024, 3:25:57 PM   ERROR [mutation resolveConflict($conflictResolveInput: ConflictResolveInput!) {
  resolveConflict(conflictResolveInput: $conflictResolveInput)
}] Object:
[
  {
    "message": "nothing to commit",
    "locations": [
      {
        "line": 2,
        "column": 3
      }
    ],
    "path": [
      "resolveConflict"
    ]
  }
]

huangzhao(User)@::ffff:172.16.156.253 [CJ1z0byltGajjHW78cGt1] POST /-/yunti/api resolveConflict
[Nest] 1  - 03/26/2024, 3:25:57 PM   ERROR - - [undefined] undefined => QueryFailedError: nothing to commit
    at Query.onResult (/usr/src/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:158:37)
    at Query.execute (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/connection.js:478:34)
    at PacketParser.onPacket (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/connection.js:97:12)
    at PacketParser.executeStart (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mysql2/lib/connection.js:104:25)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Readable.push (node:internal/streams/readable:234:10)
[Nest] 1  - 03/26/2024, 3:25:57 PM     LOG <-- huangzhao(User)@::ffff:172.16.156.253 [CJ1z0byltGajjHW78cGt1] POST /-/yunti/api?o=resolveConflict resolveConflict [200] 221ms
[Nest] 1  - 03/26/2024, 3:26:02 PM     LOG --> huangzhao(User)@::ffff:172.16.156.253 [KNUTXoMJcd4lAD--Z0Miv] POST /-/yunti/api?o=getCurrentUser getCurrentUser

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

fix error of to get MR list or detail info [Bug]

💻 系统环境 | Operating System

Windows

🐛 问题描述 | Bug Description

2 API changed:
should remove below two blocks on getMergeRequests and getDetailMergeRequest request body

    targetBranch {
      hash,
      message,
      name,
      date
    },

and

    sourceBranch {
      hash,
      message,
      name,
      date
    },

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

[Request] Merge Request support delete source branch as optional

🥰 需求描述 | Feature Description

When I do one-click i18n extract (#11), I will create a temporary branch. I expect this temporary branch to be automatically deleted after the MR merge.

🧐 解决方案 | Proposed Solution

image

📝 补充信息 | Additional Information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.