PromucFlow_constructor/app/client/src/sagas/OneClickBindingSaga.ts
balajisoundar 76fadb4123
chore: [one click binding] Property pane control to generate query for a widget (#22172)
## Description
This PR adds a property pane control through which we can browse the
datsource, tables and columns. This will be used later in the one click
feature.

Fixes #21504

## Type of change

- Chore (housekeeping or task changes that don't impact user perception

### Test Plan
> Add Testsmith test cases links that relate to this PR

### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)


## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [x] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-04-13 16:39:24 +05:30

18 lines
506 B
TypeScript

import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
import type { ReduxAction } from "@appsmith/constants/ReduxActionConstants";
import { log } from "loglevel";
import { all, takeLatest } from "redux-saga/effects";
function* BindWidgetToDatasource(action: ReduxAction<unknown>) {
log(action.payload);
}
export default function* oneClickBindingSaga() {
yield all([
takeLatest(
ReduxActionTypes.BIND_WIDGET_TO_DATASOURCE,
BindWidgetToDatasource,
),
]);
}