{"id":28305034,"url":"https://github.com/mohammadmk75/dg","last_synced_at":"2026-01-28T10:02:39.832Z","repository":{"id":224175365,"uuid":"762634157","full_name":"mohammadmk75/DG","owner":"mohammadmk75","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-03T12:24:33.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T02:40:56.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohammadmk75.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-24T08:56:48.000Z","updated_at":"2024-02-24T08:56:49.000Z","dependencies_parsed_at":"2024-02-24T09:46:48.897Z","dependency_job_id":null,"html_url":"https://github.com/mohammadmk75/DG","commit_stats":null,"previous_names":["mohammadmk75/dg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohammadmk75/DG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadmk75%2FDG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadmk75%2FDG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadmk75%2FDG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadmk75%2FDG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadmk75","download_url":"https://codeload.github.com/mohammadmk75/DG/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadmk75%2FDG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28844011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-24T01:12:19.404Z","updated_at":"2026-01-28T10:02:39.824Z","avatar_url":"https://github.com/mohammadmk75.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"1) For the first, Task both parts where answered in two seperate sql queries. q1p1 and q1p2.\n\n2) For the second task, all of the questions where answerd in four seperate parts. (q2p1,q2p2,q2p3 and q2p4).\n* I have imported the Holidays csv file to the Database.\n\nBased on Query results, We can see a huge differnece between dialy average of sales in holidays and non-holidays. Additionaly based on queries, it is obvious that holidays may have an absoloute impact on Providers Availability.\n\n4) In my opinion It is impossible to to analyze the campgain imapct on holidays without datails of holidays before starting campgain.\n\n5) I have set a docker container for metbase using metabase official docker image.\n\nThe commands are as below:\n\n1) docker pull metabase/metabase:latest\n2) docker run -d -v /path/to/db:/mock_DG.db --name metabase -e MB_DB_FILE=/mock_DG.db  -p 3000:3000 metabase/metabase\nwhere the volume path was \"C:\\Users\\Lenovo\\Desktop\\DgTask\\mock_DG.db\"\n3) Runing docker container on localhost:3000\n4) giving sqllite db path to metabase and after connection, Creating Dashboards.\n\n![metabase1](https://github.com/mohammadmk75/DG/assets/58180316/c749ef89-2ec8-4feb-bd18-7c8ee7ca19f2)\n\n\n5) Adding sql questions and visulize them and finnaly adding them to a dashborad.\n\nSql quries in metabase are shown as below:\n\n\n![metabase_sales_query](https://github.com/mohammadmk75/DG/assets/58180316/328d1958-b0ff-453d-9875-66e8bdc724db)\n![Metabase_monthly_query](https://github.com/mohammadmk75/DG/assets/58180316/6ed47edb-7dab-49cc-a536-84afed13dde3)\n![metabase_m1_Retention](https://github.com/mohammadmk75/DG/assets/58180316/f4874b11-f477-464a-b625-0c22334bdf90)\n![Metabase_M1_query](https://github.com/mohammadmk75/DG/assets/58180316/46c26af5-87ad-4158-95f5-585728b3c463)\n\n6) The Final Dashboard is :\n\n   ![Metabase_dashboard](https://github.com/mohammadmk75/DG/assets/58180316/8dc861c6-71e3-4c52-9f08-b12caaaea57d)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadmk75%2Fdg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadmk75%2Fdg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadmk75%2Fdg/lists"}