[Bug] 在Record后台删除注册实例时会失败,
- Dominant language
- TypeScript
- Stars
- 86
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### Search before asking
- [X] I have searched the existing [issues](https://github.com/arextest/arex/issues) before asking.
### AREX Test Service
API Service (arextest/arex-api)
### Current Behavior
com.arextest.config.repository.impl.InstancesConfigurationRepositoryImpl#remove 没做dto转dao:
InstancesCollection instancesCollection = InstancesMapper.INSTANCE.daoFromDto(configuration);
### Expected Behavior
com.arextest.config.repository.impl.InstancesConfigurationRepositoryImpl#remove
public boolean remove(InstancesConfiguration configuration) {
InstancesCollection instancesCollection = InstancesMapper.INSTANCE.daoFromDto(configuration);
return this.mongoTemplate.remove(instancesCollection).getDeletedCount() > 0L;
}
### Steps To Reproduce
1. 打开appSetting - Record 页面
2. 删除其中一个注册实例,返回删除失败
### Anything else
_No response_
### Are you willing to submit a pull request to fix on your own?
- [ ] Yes I am willing to submit a pull request on my own!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at com.arextest.config.repository.impl.InstancesConfigurationRepositoryImpl#remove in the AREX Test Service API and inspect how the supplied configuration is converted before the MongoDB removal. Reproduce the failure from appSetting - Record by deleting a registered instance, then verify that the instance is removed successfully and the deletion result is true.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100