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

Feature/quickview #289

Merged
merged 28 commits into from Apr 4, 2023

Conversation

MatteoBiasi
Copy link
Collaborator

No description provided.

@gappc
Copy link
Collaborator

gappc commented Feb 5, 2023

Hi @MatteoBiasi, thank you for this PR. Please note that it has conflicts with the current development branch, it can not be merged in its current state.

Please consider doing either a rebase + force push (should be fine, I don't think that there are other people that depend on this branch) or merge the current development branch into this one and fix the problems.

Let me know when you think the branch is ready and I'll start a code review.

Some things I noted while a took a first look:

@MatteoBiasi
Copy link
Collaborator Author

@gappc i think it's better to leave this opened until our next meeting together for the following reasons:

  1. I'm not confident to risolve conflicts in package.json.
  2. All new components use <script setup lang="ts"> and defineProps looks to me properly used. So I need better to understand what do you mean.
  3. The commented code is there because it appeared that the ComponentRenderer class resolves only components from a web-component library that has been already published, therefore without any explanation of that process we currently and momentarily had to implement a custom resolver.

@gappc
Copy link
Collaborator

gappc commented Feb 5, 2023

@MatteoBiasi that's fine with me, see you in the next meeting 👍

databrowser/src/components/map/MapBase.vue Outdated Show resolved Hide resolved
databrowser/src/domain/datasets/quickView/QuickView.vue Outdated Show resolved Hide resolved
@@ -34,6 +37,9 @@ app.use(createPinia());
// Register Vue cell render components globally for dynamic rendering
app.use(registerCellComponents);

// Add OpenLayers Map
app.use(OpenLayersMap);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please load the OpenLayersMap component on-demand where you need eit (e.g. MapBase.vue). That way, the JavaScript for OpenLayers is loaded by the browser only if needed, e.g. it is not needed for the home page to show up.

See https://github.com/noi-techpark/it.bz.opendatahub.databrowser/blob/development/databrowser/src/domain/datasets/editView/EditToolBox.vue#L43 for an example

databrowser/src/pages/datasets/SingleDatasetLayout.vue Outdated Show resolved Hide resolved
databrowser/src/components/map/MapBase.vue Outdated Show resolved Hide resolved
databrowser/package-lock.json Outdated Show resolved Hide resolved
@MatteoBiasi
Copy link
Collaborator Author

Hi @gappc we fixed the majority of the optimizations requested with the code review. There's still something left out (see comments on specific conversations) and the conversations which have been left opened. With this ones we prefer first to produce the final coding documentation and then to proceed with the refactoring, in order to avoid to do things twice.

@gappc
Copy link
Collaborator

gappc commented Feb 19, 2023

@MatteoBiasi I see you made some good progress, but there are still issues left, like usage of any type where concrete types would be more appropriate, usage of hand-crafted date/time manipulation and so on. In my opinion, things like these are simply best-practice and could be fixed already,

Either way, lets discuss these topics on our next meeting and do another iteration, I think were moving forward in the right direction.

@gappc
Copy link
Collaborator

gappc commented Feb 21, 2023

@MatteoBiasi: there were new commits on the development branch that add a new dependency to the Data Browser packages (see

"vite-plugin-rewrite-all": "^1.0.1",
).

Please merge / rebase that branch such that it contains the change, thank you :)

@MatteoBiasi
Copy link
Collaborator Author

Hi @gappc, since when I've merged the last release, I can no more load any view: QuickView, Detail View, Raw View etc. They're all empty. The issue seems related to data fetching, where the request never resolves. By checking the console, I see the following error:

queryObserver.js:331 TypeError: filterQuery?.replace is not a function
at parseFilterQuery (utils.ts:2:41)

But even if I change the parseFilterQuery function to make it not to fail, the API still doesn't return any data. The .env matches the example one. What should I do?

@gappc
Copy link
Collaborator

gappc commented Mar 5, 2023

Hi @MatteoBiasi, could you please provide a branch + your env variables (env please via email as they contain possibly sensititve content)? Otherwise it's really hard to find out what's going on.

@gappc
Copy link
Collaborator

gappc commented Mar 18, 2023

Hi @MatteoBiasi, I saw that this branch can not be merged, there are some conflicts. If you want to merge this branch, please bring it up to date and fix the issues. As an alternative, we could discuss during the next meeting if it is better to adhere the code to the upcoming guidelines (#319) before we merge it. What is your opinion?

@MatteoBiasi
Copy link
Collaborator Author

Hi @MatteoBiasi, I saw that this branch can not be merged, there are some conflicts. If you want to merge this branch, please bring it up to date and fix the issues. As an alternative, we could discuss during the next meeting if it is better to adhere the code to the upcoming guidelines (#319) before we merge it. What is your opinion?

I think it's better to merge this one and then do another PR for the CSS refactoring, otherwise we'll keep this one opened for too long. Anyway I propose to discuss this together tomorrow.

@gappc gappc merged commit 59632b6 into noi-techpark:development Apr 4, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants