cosmos-search icon indicating copy to clipboard operation
cosmos-search copied to clipboard

Incorrect metadata generated due to inconsistent folder structure

Open ankan17 opened this issue 8 years ago • 4 comments

I'm submitting a ... (check one with "x")

  • [x] bug report
  • [ ] feature request

Description:

Metadata is not generated correctly because of inconsistent folder structure and the code is not able to handle that situation.

Expected Behavior:

Correct metadata should be generated, if possible, irrespective of the folder structure. There may be a strict folder structure for the cosmos project.

Actual Behavior:

Folder structure --

cosmos/code/ operating_system/src
|-- scheduling
|    |-- round_robin_scheduling
|         |   round_robin_scheduling.cpp
|         |   round_robin_scheduling.java
|         |-- round_robin_c
|              |  README.md
|              |  queue.h
|              |  queue.c
|              |  round_robin.c

Metadata generated: "operating_system/src/scheduling/round_robin_scheduling/round_robin_c": ["README.md", "queue.h", "round_robin.c", "queue.c"]

Steps to Reproduce:

See the metadata.json file

Would you like to work on this issue?

  • [ ] Yes
  • [ ] No

ankan17 avatar Feb 16 '18 20:02 ankan17

@Pl4gue I have changed the metadata.json file. What should I do next?

AneriMehta avatar Feb 26 '18 16:02 AneriMehta

Hey @Pl4gue this issue has been solved by me and my teammate. What can we do now @AdiChat ? Should we create a pull request?

smehta2205 avatar Feb 28 '18 07:02 smehta2205

Restructuring the metadata.json isn't a proper solution for this as we are generating the metadata regularly. The problem stated by the author is the folder structure. But you may submit a PR anyway :)

flxwu avatar Feb 28 '18 11:02 flxwu

Thanks @Pl4gue, We are thinking of solving the problem of folder structure and then submitting a PR.

AneriMehta avatar Feb 28 '18 11:02 AneriMehta