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

feat: add dao layer #2276

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
feat: fix typo
TheoPascoli committed Jan 6, 2025
commit 24e826c016928b1d096aec8226a821a359159733
2 changes: 1 addition & 1 deletion antarest/study/service.py
Original file line number Diff line number Diff line change
@@ -2070,7 +2070,7 @@ def delete_link(
)
if referencing_binding_constraints:
binding_ids = [bc.id for bc in referencing_binding_constraints]
raise ReferencedObjectDeletionNotAllowed(link_id, binding_ids, object_type="link")
raise ReferencedObjectDeletionNotAllowed(link_id, binding_ids, object_type="Link")
self.links_manager.delete_link(study, area_from, area_to)
self.event_bus.push(
Event(

Unchanged files with check annotations Beta

);
};
const onChange = async (currentName: string) => {

Check warning on line 42 in webapp/src/components/App/Data/DataPropsView.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
if (currentName !== "") {
const f = filter(currentName);
setFilteredDatas(f);
setOpenModal(true);
};
const handleDelete = async (id: string) => {

Check warning on line 75 in webapp/src/components/App/Data/index.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
setIdForDeletion(id);
setOpenConfirmationModal(true);
};
}
};
const onMatrixClick = async (id: string) => {

Check warning on line 114 in webapp/src/components/App/Data/index.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
if (selectedItem) {
const tmp = dataList.find((o) => o.id === selectedItem);
if (tmp) {
}
};
const handleChange = async (e: React.ChangeEvent<HTMLInputElement>) => {

Check warning on line 44 in webapp/src/components/App/Singlestudy/Commands/Edition/DraggableCommands/CommandImportButton.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
e.preventDefault();
const reader = new FileReader();
reader.onload = async (ev: ProgressEvent<FileReader>) => {

Check warning on line 47 in webapp/src/components/App/Singlestudy/Commands/Edition/DraggableCommands/CommandImportButton.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
try {
if (ev.target) {
const text = ev.target.result;
}
};
const onDelete = async (index: number) => {

Check warning on line 134 in webapp/src/components/App/Singlestudy/Commands/Edition/index.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
setOpenDeleteCommandDialog(index);
};
unsubscribeWsChannels();
window.clearInterval(intervalId);
};
}, [studyId]);

Check warning on line 194 in webapp/src/components/App/Singlestudy/FreezeStudy.tsx

GitHub Actions / npm-lint

React Hook useEffect has a missing dependency: 'blockingTasksRef'. Either include it or remove the dependency array
return (
<Backdrop open={blockingTasks.length > 0} sx={{ position: "absolute" }}>
import DigestDialog from "../../../../../common/dialogs/DigestDialog";
import type { EmptyObject } from "../../../../../../utils/tsUtils";
export const ColorStatus = {

Check warning on line 50 in webapp/src/components/App/Singlestudy/HomeView/InformationView/LauncherHistory/JobStepper.tsx

GitHub Actions / npm-lint

Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
running: "warning.main",
pending: "grey.400",
success: "success.main",
const buildTree = async (
node: StudyTree,
childrenTree: VariantTree,
): Promise<void> => {

Check warning on line 69 in webapp/src/components/App/Singlestudy/HomeView/StudyTreeView/utils.ts

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
if ((childrenTree.children || []).length === 0) {
node.drawOptions.depth = 1;
node.drawOptions.nbAllChildrens = 0;
const handleSubmit = async (
data: SubmitHandlerPlus<typeof defaultValues>,
) => {

Check warning on line 56 in webapp/src/components/App/Singlestudy/UpgradeDialog.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
return upgradeStudy(study.id, data.values.version).then(onClose);
};