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

Create user bitmaps #64

Open
piconti opened this issue Jul 4, 2024 · 1 comment
Open

Create user bitmaps #64

piconti opened this issue Jul 4, 2024 · 1 comment

Comments

@piconti
Copy link
Member

piconti commented Jul 4, 2024

Prepare the code that creates user bitmaps and performs the AND operations in the impresso middle layer.

  • The user status and institution keys of the bitmaps are available here
  • A specific table on the MySQL DB needs to be created to store the bitmaps
  • Functions performing the AND operations need to be implemented.
  • Item bits will be accessible from Solr once ingested.

The four first bits (starting on the left, indices 0-3) are the ones relating to the user plans
The user bitmap relating to user plans is cumulative, hence, any user that is a researcher (bit #3 = 1) has all preceeding bits also set to 1 : 1111 [archive bits...].
All users have at least the "guest" bit set to 1 (bit #1): 1000 [archive bits, all 0]

@piconti
Copy link
Member Author

piconti commented Aug 8, 2024

Here is the bitwise and function I implemented for the bitmaps.

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

No branches or pull requests

1 participant