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

[Bug] chronological_record_meta in config.yml can not be specified another custom meta. #56

Closed
1 of 3 tasks
uuanqin opened this issue Aug 8, 2023 · 2 comments
Closed
1 of 3 tasks
Labels
bug Something isn't working

Comments

@uuanqin
Copy link

uuanqin commented Aug 8, 2023

What version of Cosma are you using?

CLI 2.0.0

On which operating system(s) did you observe the bug?

  • macOS
  • Windows
  • Linux

What version of the operating system are you on?

Windows 10

Actions leading to the bug

  1. install cosma npm install @graphlab-fr/cosma -g , version 2.0.2
  2. cosma c add a configure file and write it
  3. run cosma m
  4. open cosmoscope.html in Browser
  5. click Mode chronologique

Bug description

Since migration, all my markdown files have the same creation date on Windows. Fortunately, their front-matter has a date metadate field that records the actural creation date of the file. Its format is like 2023-07-10 23:16:32.
I refered the user manual, which states that chronological_record_meta in cosma configuration file can be set to another metadata field declared in record_metas.
Here is an example YAML configuration:

chronological_record_meta: date
record_metas:
  - date

However, it didn't work as expected. After running cosma m, the chronological_record_meta reverted back to the default value 'created' .

I questioned whether the format of date was incorrect, but I have tried 2023-07-10, 20230710231632 and 1650257016(timestamp), none of which worked. Did I make any mistakes?

Additional information

The html page is displayed as below as I click 'Mode chronologique':
image

@uuanqin uuanqin added the bug Something isn't working label Aug 8, 2023
@infologie
Copy link
Contributor

Thanks @uuanqin for reporting this bug! I was able to reproduce it with a test folder. I'm notifying @Myllaume and we're going to look into it.

@infologie
Copy link
Contributor

Hi @uuanqin. We have streamlined chronological mode for now. The parameter chronological_record_meta has been removed and chronological mode now automatically uses begin and end metadata. This closes the issue without really solving it. However, we will add the ability to define custom chronological metadata again in a future update. If you want, I'll notify you here when we do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants